2021-03-17 19:22:09 +00:00
|
|
|
declare module '@woocommerce/e2e-utils';
|
2021-04-26 16:41:38 +00:00
|
|
|
declare module '@woocommerce/e2e-environment';
|
2022-08-11 14:04:14 +00:00
|
|
|
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';
|
|
|
|
}
|
2021-05-05 17:43:46 +00:00
|
|
|
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';
|