Skip to content

Commit

Permalink
Update dependencies and new linter/formatter config (#51)
Browse files Browse the repository at this point in the history
  • Loading branch information
emmanuelsw authored Dec 10, 2024
1 parent 6ad4d0a commit 8d69630
Show file tree
Hide file tree
Showing 43 changed files with 5,983 additions and 5,484 deletions.
6 changes: 6 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
[*.{js,jsx,mjs,cjs,ts,tsx,mts,cts,vue}]
charset = utf-8
indent_size = 2
indent_style = space
insert_final_newline = true
trim_trailing_whitespace = true
26 changes: 0 additions & 26 deletions .eslintrc.js

This file was deleted.

6 changes: 6 additions & 0 deletions .prettierrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"$schema": "https://json.schemastore.org/prettierrc",
"semi": false,
"singleQuote": true,
"printWidth": 100
}
2 changes: 1 addition & 1 deletion babel.config.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
{
"presets": ["@babel/preset-env"]
}
}
143 changes: 55 additions & 88 deletions dist/Notification.vue.d.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
import { Notification } from './types';

export interface Props {
maxNotifications?: number;
enter?: string;
Expand All @@ -9,85 +11,30 @@ export interface Props {
move?: string;
moveDelay?: string;
}
declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
maxNotifications: {
type: import("vue").PropType<number>;
default: number;
};
enter: {
type: import("vue").PropType<string>;
default: string;
};
enterFrom: {
type: import("vue").PropType<string>;
default: string;
};
enterTo: {
type: import("vue").PropType<string>;
default: string;
};
leave: {
type: import("vue").PropType<string>;
default: string;
};
leaveFrom: {
type: import("vue").PropType<string>;
default: string;
};
leaveTo: {
type: import("vue").PropType<string>;
default: string;
};
move: {
type: import("vue").PropType<string>;
default: string;
};
moveDelay: {
type: import("vue").PropType<string>;
default: string;
};
}, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
declare function __VLS_template(): {
default?(_: {
notifications: {
[x: string]: unknown;
id: number;
group: string;
}[];
close: (id: Notification["id"]) => void;
hovering: (id: number, value: boolean, timeout?: number) => void;
}): any;
};
declare const __VLS_component: import('vue').DefineComponent<import('vue').ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<Props>, {
maxNotifications: number;
enter: string;
enterFrom: string;
enterTo: string;
leave: string;
leaveFrom: string;
leaveTo: string;
move: string;
moveDelay: string;
}>>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
close: () => void;
}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
maxNotifications: {
type: import("vue").PropType<number>;
default: number;
};
enter: {
type: import("vue").PropType<string>;
default: string;
};
enterFrom: {
type: import("vue").PropType<string>;
default: string;
};
enterTo: {
type: import("vue").PropType<string>;
default: string;
};
leave: {
type: import("vue").PropType<string>;
default: string;
};
leaveFrom: {
type: import("vue").PropType<string>;
default: string;
};
leaveTo: {
type: import("vue").PropType<string>;
default: string;
};
move: {
type: import("vue").PropType<string>;
default: string;
};
moveDelay: {
type: import("vue").PropType<string>;
default: string;
};
}>> & {
onClose?: (() => any) | undefined;
}, {
}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<Props>, {
maxNotifications: number;
enter: string;
enterFrom: string;
Expand All @@ -97,18 +44,38 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
leaveTo: string;
move: string;
moveDelay: string;
}>>> & Readonly<{
onClose?: (() => any) | undefined;
}>, {
default?(_: {
notifications: {
[x: string]: unknown;
id: number;
group: string;
}[];
close: (id: number) => void;
hovering: (id: number, value: boolean, timeout?: number | undefined) => void;
}): any;
}>;
maxNotifications: number;
enter: string;
enterFrom: string;
enterTo: string;
leave: string;
leaveFrom: string;
leaveTo: string;
move: string;
moveDelay: string;
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, ReturnType<typeof __VLS_template>>;
export default _default;
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
type __VLS_TypePropsToRuntimeProps<T> = {
[K in keyof T]-?: {} extends Pick<T, K> ? {
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
} : {
type: import('vue').PropType<T[K]>;
required: true;
};
};
type __VLS_WithDefaults<P, D> = {
[K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
default: D[K];
}> : P[K];
};
type __VLS_Prettify<T> = {
[K in keyof T]: T[K];
} & {};
type __VLS_WithTemplateSlots<T, S> = T & {
new (): {
$slots: S;
Expand Down
55 changes: 31 additions & 24 deletions dist/NotificationGroup.vue.d.ts
Original file line number Diff line number Diff line change
@@ -1,34 +1,41 @@
export interface Props {
group?: string;
position?: "top" | "bottom";
position?: 'top' | 'bottom';
}
declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
group: {
type: import("vue").PropType<string>;
default: string;
};
position: {
type: import("vue").PropType<"top" | "bottom">;
default: string;
};
}, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
group: {
type: import("vue").PropType<string>;
default: string;
};
position: {
type: import("vue").PropType<"top" | "bottom">;
default: string;
};
}>>, {
group: string;
position: "top" | "bottom";
}>, {
declare function __VLS_template(): {
default?(_: {
group: string;
}): any;
}>;
};
declare const __VLS_component: import('vue').DefineComponent<import('vue').ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<Props>, {
group: string;
position: string;
}>>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<Props>, {
group: string;
position: string;
}>>> & Readonly<{}>, {
group: string;
position: "top" | "bottom";
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, ReturnType<typeof __VLS_template>>;
export default _default;
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
type __VLS_TypePropsToRuntimeProps<T> = {
[K in keyof T]-?: {} extends Pick<T, K> ? {
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
} : {
type: import('vue').PropType<T[K]>;
required: true;
};
};
type __VLS_WithDefaults<P, D> = {
[K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
default: D[K];
}> : P[K];
};
type __VLS_Prettify<T> = {
[K in keyof T]: T[K];
} & {};
type __VLS_WithTemplateSlots<T, S> = T & {
new (): {
$slots: S;
Expand Down
5 changes: 3 additions & 2 deletions dist/createNotifier.d.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import { Notification, NotificationSchema } from "./types";
type UserNotification<T extends NotificationSchema> = Omit<Notification<T>, "id" | "group"> & Partial<Pick<Notification<T>, "group">>;
import { Notification, NotificationSchema } from './types';

type UserNotification<T extends NotificationSchema> = Omit<Notification<T>, 'id' | 'group'> & Partial<Pick<Notification<T>, 'group'>>;
declare const createNotifier: <T extends NotificationSchema>() => (notification: UserNotification<T>, timeout?: number) => () => void;
export default createNotifier;
Loading

0 comments on commit 8d69630

Please sign in to comment.