Skip to content

Commit

Permalink
feat: auto update d.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
slatejack committed Jul 17, 2024
1 parent 8a0cc80 commit 7b588e1
Show file tree
Hide file tree
Showing 7 changed files with 41 additions and 6 deletions.
13 changes: 13 additions & 0 deletions .idea/material_theme_project_new.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions typings/bulletScreen.d.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { BulletStyle, pushItem, screenElement, ScreenOpsTypes } from '@/interface/screen';
import { AnimationPlayState, BulletStyle, pushItem, screenElement, ScreenOpsTypes } from '@/interface/screen';
declare type queueType = [pushItem, HTMLElement, (BulletStyle | undefined)];
declare class BulletScreen {
target: HTMLElement;
Expand Down Expand Up @@ -30,7 +30,7 @@ declare class BulletScreen {
* @param Item
*/
getRenderDom(Item: pushItem): JSX.Element;
_toggleAnimateStatus: (id: string | null, status?: string) => void;
_toggleAnimateStatus: (id: string | null, status?: AnimationPlayState) => void;
pause(id?: string | null): void;
resume(id?: string | null): void;
hide(): void;
Expand Down
9 changes: 9 additions & 0 deletions typings/constants/common.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
export declare const TRACK_STATUS: {
free: string;
feed: string;
occupied: string;
};
export declare const ANIMATION_PLAY_STATE: {
paused: string;
running: string;
};
4 changes: 3 additions & 1 deletion typings/interface/screen.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,4 +29,6 @@ interface BulletStyle {
top?: string;
bottom?: string;
}
export type { pushItem, screenElement, ScreenOpsTypes, pushItemObj, BulletStyle, };
declare type AnimationPlayState = 'running' | 'paused';
declare type TrackStatus = 'idle' | 'feed' | 'running';
export type { pushItem, screenElement, ScreenOpsTypes, pushItemObj, BulletStyle, AnimationPlayState, TrackStatus };
4 changes: 2 additions & 2 deletions typings/src/bulletScreen.d.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { BulletStyle, pushItem, screenElement, ScreenOpsTypes } from '@/interface/screen';
import { AnimationPlayState, BulletStyle, pushItem, screenElement, ScreenOpsTypes } from '@/interface/screen';
declare type queueType = [pushItem, HTMLElement, (BulletStyle | undefined)];
declare class BulletScreen {
target: HTMLElement;
Expand Down Expand Up @@ -30,7 +30,7 @@ declare class BulletScreen {
* @param Item
*/
getRenderDom(Item: pushItem): JSX.Element;
_toggleAnimateStatus: (id: string | null, status?: string) => void;
_toggleAnimateStatus: (id: string | null, status?: AnimationPlayState) => void;
pause(id?: string | null): void;
resume(id?: string | null): void;
hide(): void;
Expand Down
9 changes: 9 additions & 0 deletions typings/src/constants/common.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
export declare const TRACK_STATUS: {
free: string;
feed: string;
occupied: string;
};
export declare const ANIMATION_PLAY_STATE: {
paused: string;
running: string;
};
4 changes: 3 additions & 1 deletion typings/src/interface/screen.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,4 +29,6 @@ interface BulletStyle {
top?: string;
bottom?: string;
}
export type { pushItem, screenElement, ScreenOpsTypes, pushItemObj, BulletStyle, };
declare type AnimationPlayState = 'running' | 'paused';
declare type TrackStatus = 'idle' | 'feed' | 'running';
export type { pushItem, screenElement, ScreenOpsTypes, pushItemObj, BulletStyle, AnimationPlayState, TrackStatus };

0 comments on commit 7b588e1

Please sign in to comment.