- Add debounced state updates for title and content (500ms delay) - Immediate UI updates with delayed history saving - Prevent one-letter-per-undo issue - Add cleanup for debounce timers on unmount
16 lines
394 B
TypeScript
16 lines
394 B
TypeScript
import type {CodeKeywordDefinition} from "../../types"
|
|
import type {KeywordCxt} from "../../compile/validate"
|
|
import {validateProperties, error} from "./properties"
|
|
|
|
const def: CodeKeywordDefinition = {
|
|
keyword: "optionalProperties",
|
|
schemaType: "object",
|
|
error,
|
|
code(cxt: KeywordCxt) {
|
|
if (cxt.parentSchema.properties) return
|
|
validateProperties(cxt)
|
|
},
|
|
}
|
|
|
|
export default def
|