timered-counter
Version:
Make the value change more vivid and natural
10 lines (9 loc) • 500 B
TypeScript
import { StoryObj } from '@storybook/web-components';
import { TimeredCounter } from '../../src/index.js';
import { NoUndefinedField } from '../utils/index.js';
export declare function emoji<TC extends TimeredCounter>(context: Parameters<NoUndefinedField<StoryObj>['play']>[0], { counter, setBy, list, }: {
counter: TC;
list: string[];
setBy: (counter: TC, key: string, value: string) => void;
equal?: (counter: TimeredCounter, a: any, b: string) => Promise<void>;
}): Promise<void>;