woocommerce/plugins/woocommerce-admin/client/typings/index.d.ts

26 lines
860 B
TypeScript
Raw Normal View History

declare module '@woocommerce/e2e-utils';
declare module '@woocommerce/e2e-environment';
declare module '@woocommerce/settings' {
export declare function getAdminLink( path: string ): string;
export declare function getSetting< T >(
name: string,
fallback?: unknown,
filter = ( val: unknown, fb: unknown ) =>
typeof val !== 'undefined' ? val : fb
): T;
}
2022-04-28 09:23:10 +00:00
declare module '@wordpress/components/build/ui' {
// Typescript seems unable to resolve this correctly by default, so we need to re-export it in our type defs.
export * from '@wordpress/components/build-types/ui';
}
declare module 'gridicons/dist/*' {
const value: React.ElementType< {
size?: 12 | 18 | 24 | 36 | 48 | 54 | 72;
onClick?: ( event: MouseEvent | KeyboardEvent ) => void;
} >;
export default value;
}
2022-04-14 03:08:07 +00:00
declare module '*.png';
declare module '*.jpg';
2022-04-15 08:57:05 +00:00
declare module '*.svg';