ant-design/tests/__mocks__/copy-to-clipboard.ts

10 lines
217 B
TypeScript
Raw Normal View History

2022-12-19 13:31:41 +08:00
const copy: ((str?: string, options?: object) => void) & {
lastStr?: string;
lastOptions?: object;
} = (str: string, options = {}) => {
copy.lastStr = str;
copy.lastOptions = options;
};
export default copy;