14 lines
390 B
TypeScript
14 lines
390 B
TypeScript
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;
|
|
export declare function isWpVersion(
|
|
version: string,
|
|
operator: '>' | '>=' | '=' | '<' | '<='
|
|
): boolean;
|
|
}
|