@fast-china/utils 1.0.23 → 1.0.24
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/es/vue/slots.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { SlotsType, VNode } from 'vue';
|
|
2
2
|
type RawSlots = Record<string, unknown>;
|
|
3
3
|
type VueSlots<T> = [T] extends [never] ? () => VNode[] : (arg: T) => VNode[];
|
|
4
|
-
type MakeSlots<T extends RawSlots> = {
|
|
4
|
+
export type MakeSlots<T extends RawSlots> = {
|
|
5
5
|
[K in keyof T]: VueSlots<T[K]>;
|
|
6
6
|
};
|
|
7
7
|
/**
|
package/es/vue/slots.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"slots.mjs","sources":["../../../../src/vue/slots.ts"],"sourcesContent":["import type { SlotsType, VNode } from \"vue\";\n\ntype RawSlots = Record<string, unknown>;\n\ntype VueSlots<T> = [T] extends [never] ? () => VNode[] : (arg: T) => VNode[];\n\
|
|
1
|
+
{"version":3,"file":"slots.mjs","sources":["../../../../src/vue/slots.ts"],"sourcesContent":["import type { SlotsType, VNode } from \"vue\";\n\ntype RawSlots = Record<string, unknown>;\n\ntype VueSlots<T> = [T] extends [never] ? () => VNode[] : (arg: T) => VNode[];\n\nexport type MakeSlots<T extends RawSlots> = {\n\t[K in keyof T]: VueSlots<T[K]>;\n};\n\n/**\n * 构建 slots\n */\nexport const makeSlots = <Slots extends RawSlots>(): SlotsType<Partial<MakeSlots<Slots>>> => {\n\treturn Object as SlotsType<Partial<MakeSlots<Slots>>>;\n};\n"],"names":[],"mappings":"AAaO,MAAM,YAAY,MAAoE;AACrF,SAAA;AACR;"}
|
package/lib/vue/slots.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { SlotsType, VNode } from 'vue';
|
|
2
2
|
type RawSlots = Record<string, unknown>;
|
|
3
3
|
type VueSlots<T> = [T] extends [never] ? () => VNode[] : (arg: T) => VNode[];
|
|
4
|
-
type MakeSlots<T extends RawSlots> = {
|
|
4
|
+
export type MakeSlots<T extends RawSlots> = {
|
|
5
5
|
[K in keyof T]: VueSlots<T[K]>;
|
|
6
6
|
};
|
|
7
7
|
/**
|
package/lib/vue/slots.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"slots.js","sources":["../../../../src/vue/slots.ts"],"sourcesContent":["import type { SlotsType, VNode } from \"vue\";\n\ntype RawSlots = Record<string, unknown>;\n\ntype VueSlots<T> = [T] extends [never] ? () => VNode[] : (arg: T) => VNode[];\n\
|
|
1
|
+
{"version":3,"file":"slots.js","sources":["../../../../src/vue/slots.ts"],"sourcesContent":["import type { SlotsType, VNode } from \"vue\";\n\ntype RawSlots = Record<string, unknown>;\n\ntype VueSlots<T> = [T] extends [never] ? () => VNode[] : (arg: T) => VNode[];\n\nexport type MakeSlots<T extends RawSlots> = {\n\t[K in keyof T]: VueSlots<T[K]>;\n};\n\n/**\n * 构建 slots\n */\nexport const makeSlots = <Slots extends RawSlots>(): SlotsType<Partial<MakeSlots<Slots>>> => {\n\treturn Object as SlotsType<Partial<MakeSlots<Slots>>>;\n};\n"],"names":["Object"],"mappings":"kGAayB,IACjBA"}
|