Skip to content

Commit

Permalink
chore: update unpinned deps
Browse files Browse the repository at this point in the history
  • Loading branch information
johnsoncodehk committed Dec 5, 2023
1 parent e7b3da5 commit 6428aab
Show file tree
Hide file tree
Showing 3 changed files with 248 additions and 644 deletions.
58 changes: 29 additions & 29 deletions packages/tsc/tests/__snapshots__/dts.spec.ts.snap
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ export default _default;
`;

exports[`vue-tsc-dts > Input: empty-component/component.vue, Output: empty-component/component.vue.d.ts 1`] = `
"declare const _default: import(\\"vue\\").DefineComponent<{}, {}, {}, {}, {}, import(\\"vue\\").ComponentOptionsMixin, import(\\"vue\\").ComponentOptionsMixin, {}, string, import(\\"vue\\").VNodeProps & import(\\"vue\\").AllowedComponentProps & import(\\"vue\\").ComponentCustomProps, Readonly<import(\\"vue\\").ExtractPropTypes<{}>>, {}, {}>;
"declare const _default: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}, {}>;
export default _default;
"
`;
Expand All @@ -39,7 +39,7 @@ exports[`vue-tsc-dts > Input: options-api/component.ts, Output: options-api/comp
*/
password: string;
}
declare const _default: import(\\"vue\\").DefineComponent<{
declare const _default: import("vue").DefineComponent<{
/**
* Default number
*/
Expand Down Expand Up @@ -70,9 +70,9 @@ declare const _default: import(\\"vue\\").DefineComponent<{
type: ArrayConstructor;
default: (props: any) => any[];
};
}, unknown, unknown, {}, {}, import(\\"vue\\").ComponentOptionsMixin, import(\\"vue\\").ComponentOptionsMixin, {
}, unknown, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
submit: ({ email, password }: SubmitPayload) => boolean;
}, string, import(\\"vue\\").VNodeProps & import(\\"vue\\").AllowedComponentProps & import(\\"vue\\").ComponentCustomProps, Readonly<import(\\"vue\\").ExtractPropTypes<{
}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
/**
* Default number
*/
Expand Down Expand Up @@ -116,7 +116,7 @@ export default _default;
`;

exports[`vue-tsc-dts > Input: reference-type-events/component.vue, Output: reference-type-events/component.vue.d.ts 1`] = `
"declare const _default: import(\\"vue\\").DefineComponent<{}, {}, {}, {}, {}, import(\\"vue\\").ComponentOptionsMixin, import(\\"vue\\").ComponentOptionsMixin, {
"declare const _default: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
foo: (data?: {
foo: string;
}) => void;
Expand All @@ -125,7 +125,7 @@ exports[`vue-tsc-dts > Input: reference-type-events/component.vue, Output: refer
arg2?: any;
}) => void;
baz: () => void;
}, string, import(\\"vue\\").VNodeProps & import(\\"vue\\").AllowedComponentProps & import(\\"vue\\").ComponentCustomProps, Readonly<import(\\"vue\\").ExtractPropTypes<{}>> & {
}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>> & {
onBar?: (value: {
arg1: number;
arg2?: any;
Expand Down Expand Up @@ -159,22 +159,22 @@ export {};
`;

exports[`vue-tsc-dts > Input: reference-type-exposed/component.vue, Output: reference-type-exposed/component.vue.d.ts 1`] = `
"declare const _default: import(\\"vue\\").DefineComponent<{}, {
"declare const _default: import("vue").DefineComponent<{}, {
/**
* a counter string
*/
counter: import(\\"vue\\").Ref<string>;
}, {}, {}, {}, import(\\"vue\\").ComponentOptionsMixin, import(\\"vue\\").ComponentOptionsMixin, {}, string, import(\\"vue\\").VNodeProps & import(\\"vue\\").AllowedComponentProps & import(\\"vue\\").ComponentCustomProps, Readonly<import(\\"vue\\").ExtractPropTypes<{}>>, {}, {}>;
counter: import("vue").Ref<string>;
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}, {}>;
export default _default;
"
`;
exports[`vue-tsc-dts > Input: reference-type-props/component.vue, Output: reference-type-props/component.vue.d.ts 1`] = `
"import { MyProps } from './my-props';
declare const _default: import(\\"vue\\").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<MyProps>, {
declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<MyProps>, {
bar: number;
baz: () => string[];
}>, {}, unknown, {}, {}, import(\\"vue\\").ComponentOptionsMixin, import(\\"vue\\").ComponentOptionsMixin, {}, string, import(\\"vue\\").VNodeProps & import(\\"vue\\").AllowedComponentProps & import(\\"vue\\").ComponentCustomProps, Readonly<import(\\"vue\\").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<MyProps>, {
}>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<MyProps>, {
bar: number;
baz: () => string[];
}>>>, {
Expand Down Expand Up @@ -203,7 +203,7 @@ type __VLS_Prettify<T> = {
`;
exports[`vue-tsc-dts > Input: reference-type-props/component-js.vue, Output: reference-type-props/component-js.vue.d.ts 1`] = `
"declare const _default: import(\\"vue\\").DefineComponent<{
"declare const _default: import("vue").DefineComponent<{
foo: {
type: StringConstructor;
required: true;
Expand All @@ -221,12 +221,12 @@ exports[`vue-tsc-dts > Input: reference-type-props/component-js.vue, Output: ref
};
xbar: {
readonly type: StringConstructor;
readonly value: \\"\\";
readonly value: "";
};
xbaz: {
readonly type: StringConstructor;
};
}, unknown, unknown, {}, {}, import(\\"vue\\").ComponentOptionsMixin, import(\\"vue\\").ComponentOptionsMixin, {}, string, import(\\"vue\\").VNodeProps & import(\\"vue\\").AllowedComponentProps & import(\\"vue\\").ComponentCustomProps, Readonly<import(\\"vue\\").ExtractPropTypes<{
}, unknown, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
foo: {
type: StringConstructor;
required: true;
Expand All @@ -244,7 +244,7 @@ exports[`vue-tsc-dts > Input: reference-type-props/component-js.vue, Output: ref
};
xbar: {
readonly type: StringConstructor;
readonly value: \\"\\";
readonly value: "";
};
xbaz: {
readonly type: StringConstructor;
Expand All @@ -257,7 +257,7 @@ export default _default;
`;
exports[`vue-tsc-dts > Input: reference-type-props/component-js-setup.vue, Output: reference-type-props/component-js-setup.vue.d.ts 1`] = `
"declare const _default: import(\\"vue\\").DefineComponent<{
"declare const _default: import("vue").DefineComponent<{
foo: {
type: StringConstructor;
required: true;
Expand All @@ -275,7 +275,7 @@ exports[`vue-tsc-dts > Input: reference-type-props/component-js-setup.vue, Outpu
};
xbar: {
readonly type: StringConstructor;
readonly value: \\"\\";
readonly value: "";
};
xbaz: {
readonly type: StringConstructor;
Expand All @@ -297,7 +297,7 @@ exports[`vue-tsc-dts > Input: reference-type-props/component-js-setup.vue, Outpu
type: ArrayConstructor;
default: () => number[];
};
}, {}, unknown, {}, {}, import(\\"vue\\").ComponentOptionsMixin, import(\\"vue\\").ComponentOptionsMixin, {}, string, import(\\"vue\\").VNodeProps & import(\\"vue\\").AllowedComponentProps & import(\\"vue\\").ComponentCustomProps, Readonly<import(\\"vue\\").ExtractPropTypes<{
}, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
foo: {
type: StringConstructor;
required: true;
Expand All @@ -315,7 +315,7 @@ exports[`vue-tsc-dts > Input: reference-type-props/component-js-setup.vue, Outpu
};
xbar: {
readonly type: StringConstructor;
readonly value: \\"\\";
readonly value: "";
};
xbaz: {
readonly type: StringConstructor;
Expand Down Expand Up @@ -365,19 +365,19 @@ declare enum MyEnum {
Medium = 1,
Large = 2
}
declare const categories: readonly [\\"Uncategorized\\", \\"Content\\", \\"Interaction\\", \\"Display\\", \\"Forms\\", \\"Addons\\"];
declare const categories: readonly ["Uncategorized", "Content", "Interaction", "Display", "Forms", "Addons"];
type MyCategories = typeof categories[number];
export interface MyProps {
/**
* string foo
*
* @default \\"rounded\\"
* @default "rounded"
* @since v1.0.0
* @see https://vuejs.org/
* @example
* \`\`\`vue
* <template>
* <component foo=\\"straight\\" />
* <component foo="straight" />
* </template>
* \`\`\`
*/
Expand Down Expand Up @@ -442,7 +442,7 @@ export declare const StringRequired: {
};
export declare const StringEmpty: {
readonly type: StringConstructor;
readonly value: \\"\\";
readonly value: "";
};
export declare const StringUndefined: {
readonly type: StringConstructor;
Expand All @@ -452,12 +452,12 @@ export {};
`;
exports[`vue-tsc-dts > Input: template-slots/component.vue, Output: template-slots/component.vue.d.ts 1`] = `
"declare const _default: __VLS_WithTemplateSlots<import(\\"vue\\").DefineComponent<{}, {}, {}, {}, {}, import(\\"vue\\").ComponentOptionsMixin, import(\\"vue\\").ComponentOptionsMixin, {}, string, import(\\"vue\\").VNodeProps & import(\\"vue\\").AllowedComponentProps & import(\\"vue\\").ComponentCustomProps, Readonly<import(\\"vue\\").ExtractPropTypes<{}>>, {}, {}>, {
\\"no-bind\\"?(_: {}): any;
"declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}, {}>, {
"no-bind"?(_: {}): any;
default?(_: {
num: number;
}): any;
\\"named-slot\\"?(_: {
"named-slot"?(_: {
str: string;
}): any;
vbind?(_: {
Expand All @@ -475,12 +475,12 @@ type __VLS_WithTemplateSlots<T, S> = T & {
`;
exports[`vue-tsc-dts > Input: template-slots/component-no-script.vue, Output: template-slots/component-no-script.vue.d.ts 1`] = `
"declare const _default: __VLS_WithTemplateSlots<import(\\"vue\\").DefineComponent<{}, {}, {}, {}, {}, import(\\"vue\\").ComponentOptionsMixin, import(\\"vue\\").ComponentOptionsMixin, {}, string, import(\\"vue\\").VNodeProps & import(\\"vue\\").AllowedComponentProps & import(\\"vue\\").ComponentCustomProps, Readonly<import(\\"vue\\").ExtractPropTypes<{}>>, {}, {}>, {
\\"no-bind\\"?(_: {}): any;
"declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}, {}>, {
"no-bind"?(_: {}): any;
default?(_: {
num: number;
}): any;
\\"named-slot\\"?(_: {
"named-slot"?(_: {
str: string;
}): any;
vbind?(_: {
Expand Down
Loading

0 comments on commit 6428aab

Please sign in to comment.