@blocksuite/global
Advanced tools
Comparing version 0.5.0-20230315153039-983040a to 0.5.0-20230317001802-ebd1fa9
@@ -72,2 +72,3 @@ export declare const TextIcon: import("lit").TemplateResult<1>; | ||
export declare const TransparentIcon: import("lit").TemplateResult<1>; | ||
export declare const MoreHorizontalIcon: import("lit").TemplateResult<1>; | ||
//# sourceMappingURL=icons.d.ts.map |
@@ -28,3 +28,3 @@ import type { CodeBlockModelSchema, DatabaseBlockModelSchema, DividerBlockModelSchema, EmbedBlockModelSchema, FrameBlockModelSchema, ListBlockModelSchema, PageBlockModelSchema, ParagraphBlockModelSchema, SurfaceBlockModelSchema } from '@blocksuite/blocks'; | ||
}; | ||
export type UnionToIntersection<T> = (T extends any ? (x: T) => any : never) extends (x: infer R) => any ? R : never; | ||
export * from './utils/types.js'; | ||
//# sourceMappingURL=types.d.ts.map |
@@ -1,2 +0,2 @@ | ||
export {}; | ||
export * from './utils/types.js'; | ||
//# sourceMappingURL=types.js.map |
@@ -22,3 +22,3 @@ import type { BaseBlockModel } from '@blocksuite/store'; | ||
export declare const isNonTextBlock: <Key extends "affine:paragraph" | "affine:page" | "affine:list" | "affine:frame" | "affine:code" | "affine:divider" | "affine:embed" | "affine:surface" | "affine:database" = "affine:paragraph" | "affine:page" | "affine:list" | "affine:frame" | "affine:code" | "affine:divider" | "affine:embed" | "affine:surface" | "affine:database">(model: BaseBlockModel) => boolean; | ||
type Allowed = void | null | undefined | boolean | number | string | unknown[] | object; | ||
type Allowed = unknown | void | null | undefined | boolean | number | string | unknown[] | object; | ||
export declare function assertEquals<T extends Allowed, U extends T>(val: T, expected: U, message?: string): asserts val is U; | ||
@@ -25,0 +25,0 @@ export declare function isEqual<T extends Allowed, U extends T>(val: T, expected: U): boolean; |
{ | ||
"name": "@blocksuite/global", | ||
"version": "0.5.0-20230315153039-983040a", | ||
"version": "0.5.0-20230317001802-ebd1fa9", | ||
"types": "./index.d.ts", | ||
@@ -26,3 +26,3 @@ "type": "module", | ||
"ansi-colors": "^4.1.3", | ||
"zod": "^3.20.6" | ||
"zod": "^3.21.4" | ||
}, | ||
@@ -29,0 +29,0 @@ "devDependencies": { |
@@ -53,6 +53,2 @@ import type { | ||
export type UnionToIntersection<T> = | ||
// eslint-disable-next-line @typescript-eslint/no-explicit-any | ||
(T extends any ? (x: T) => any : never) extends (x: infer R) => any | ||
? R | ||
: never; | ||
export * from './utils/types.js'; |
@@ -76,2 +76,3 @@ import type { BaseBlockModel } from '@blocksuite/store'; | ||
type Allowed = | ||
| unknown | ||
| void | ||
@@ -78,0 +79,0 @@ | null |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
445155
89
4617
Updatedzod@^3.21.4