@wordpress/block-library
Version:
Block library for the WordPress editor.
48 lines • 1.13 kB
TypeScript
type NavigationLinkDeprecatedAttributes = {
label?: string;
type?: string;
nofollow?: boolean;
description?: string;
id?: number;
opensInNewTab?: boolean;
url?: string;
};
declare const deprecated: {
isEligible(attributes: NavigationLinkDeprecatedAttributes): boolean | undefined;
attributes: {
label: {
type: string;
};
type: {
type: string;
};
nofollow: {
type: string;
};
description: {
type: string;
};
id: {
type: string;
};
opensInNewTab: {
type: string;
default: boolean;
};
url: {
type: string;
};
};
migrate({ nofollow, ...rest }: NavigationLinkDeprecatedAttributes): {
label?: string;
type?: string;
description?: string;
id?: number;
opensInNewTab?: boolean;
url?: string;
rel: string;
};
save(): import("react").JSX.Element;
}[];
export default deprecated;
//# sourceMappingURL=deprecated.d.ts.map