@input/pen-types 0.1.7 → 0.1.9

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.d.cts CHANGED
@@ -1057,15 +1057,15 @@ interface BlockSchema<Type extends string = string, Props extends Record<string,
1057
1057
  content: Content;
1058
1058
  layout?: LayoutSchema;
1059
1059
  serialize: {
1060
- toMarkdown?(block: Block<Type, InferProps<Props>>): string;
1061
- fromMarkdown?(node: MarkdownNode): BlockImportMatch<Type, InferProps<Props>> | null;
1062
- toHTML?(block: Block<Type, InferProps<Props>>): string;
1063
- fromHTML?(element: HTMLImportElement): BlockImportMatch<Type, InferProps<Props>> | null;
1064
- toXML?(block: Block<Type, InferProps<Props>>): string;
1065
- fromXML?(element: XMLElement): Block<Type, InferProps<Props>> | null;
1060
+ toMarkdown?(this: void, block: Block<Type, InferProps<Props>>): string;
1061
+ fromMarkdown?(this: void, node: MarkdownNode): BlockImportMatch<Type, InferProps<Props>> | null;
1062
+ toHTML?(this: void, block: Block<Type, InferProps<Props>>): string;
1063
+ fromHTML?(this: void, element: HTMLImportElement): BlockImportMatch<Type, InferProps<Props>> | null;
1064
+ toXML?(this: void, block: Block<Type, InferProps<Props>>): string;
1065
+ fromXML?(this: void, element: XMLElement): Block<Type, InferProps<Props>> | null;
1066
1066
  };
1067
- normalize?(block: Block<Type, InferProps<Props>>): Block<Type, InferProps<Props>>;
1068
- validateProps?(raw: Record<string, unknown>): InferProps<Props>;
1067
+ normalize?(this: void, block: Block<Type, InferProps<Props>>): Block<Type, InferProps<Props>>;
1068
+ validateProps?(this: void, raw: Record<string, unknown>): InferProps<Props>;
1069
1069
  fieldEditor?: FieldEditorType;
1070
1070
  keyBindings?: readonly KeyBinding[];
1071
1071
  placeholder?: string;
package/dist/index.d.ts CHANGED
@@ -1057,15 +1057,15 @@ interface BlockSchema<Type extends string = string, Props extends Record<string,
1057
1057
  content: Content;
1058
1058
  layout?: LayoutSchema;
1059
1059
  serialize: {
1060
- toMarkdown?(block: Block<Type, InferProps<Props>>): string;
1061
- fromMarkdown?(node: MarkdownNode): BlockImportMatch<Type, InferProps<Props>> | null;
1062
- toHTML?(block: Block<Type, InferProps<Props>>): string;
1063
- fromHTML?(element: HTMLImportElement): BlockImportMatch<Type, InferProps<Props>> | null;
1064
- toXML?(block: Block<Type, InferProps<Props>>): string;
1065
- fromXML?(element: XMLElement): Block<Type, InferProps<Props>> | null;
1060
+ toMarkdown?(this: void, block: Block<Type, InferProps<Props>>): string;
1061
+ fromMarkdown?(this: void, node: MarkdownNode): BlockImportMatch<Type, InferProps<Props>> | null;
1062
+ toHTML?(this: void, block: Block<Type, InferProps<Props>>): string;
1063
+ fromHTML?(this: void, element: HTMLImportElement): BlockImportMatch<Type, InferProps<Props>> | null;
1064
+ toXML?(this: void, block: Block<Type, InferProps<Props>>): string;
1065
+ fromXML?(this: void, element: XMLElement): Block<Type, InferProps<Props>> | null;
1066
1066
  };
1067
- normalize?(block: Block<Type, InferProps<Props>>): Block<Type, InferProps<Props>>;
1068
- validateProps?(raw: Record<string, unknown>): InferProps<Props>;
1067
+ normalize?(this: void, block: Block<Type, InferProps<Props>>): Block<Type, InferProps<Props>>;
1068
+ validateProps?(this: void, raw: Record<string, unknown>): InferProps<Props>;
1069
1069
  fieldEditor?: FieldEditorType;
1070
1070
  keyBindings?: readonly KeyBinding[];
1071
1071
  placeholder?: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@input/pen-types",
3
- "version": "0.1.7",
3
+ "version": "0.1.9",
4
4
  "description": "Type definitions and lightweight runtime helpers for Pen",
5
5
  "license": "MIT",
6
6
  "homepage": "https://github.com/input-systems/pen#readme",