Skip to content

Commit dba7321

Browse files
committed
fix: widen type?
1 parent 55957cd commit dba7321

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

packages/core/src/schema/blocks/types.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -201,7 +201,7 @@ export type BlockFromConfigNoChildren<
201201
? TableContent<I, S>
202202
: B["content"] extends "none"
203203
? undefined
204-
: never;
204+
: undefined | never;
205205
};
206206

207207
export type BlockFromConfig<
@@ -283,7 +283,7 @@ type PartialBlockFromConfigNoChildren<
283283
? PartialInlineContent<I, S>
284284
: B["content"] extends "table"
285285
? PartialTableContent<I, S>
286-
: undefined;
286+
: undefined | never;
287287
};
288288

289289
type PartialBlocksWithoutChildren<
@@ -405,9 +405,9 @@ export type BlockDefinition<
405405
> = {
406406
config: BlockConfig<TName, TProps, TContent>;
407407
implementation: BlockImplementation<
408-
NoInfer<TName>,
409-
NoInfer<TProps>,
410-
TContent
408+
string,
409+
PropSchema,
410+
"inline" | "none" | "table"
411411
>;
412412
extensions?: BlockNoteExtension<any>[];
413413
};

0 commit comments

Comments
 (0)