Some checks failed
Build & Deploy / 🔍 Prepare (push) Successful in 20s
Build & Deploy / 🧪 QA (push) Failing after 34s
Build & Deploy / 🏗️ Build (push) Has started running
Build & Deploy / 🚀 Deploy (push) Has been cancelled
Build & Deploy / 🧪 Smoke Test (push) Has been cancelled
Build & Deploy / ⚡ Lighthouse (push) Has been cancelled
Build & Deploy / 🔔 Notify (push) Has been cancelled
38 lines
929 B
Plaintext
38 lines
929 B
Plaintext
declare namespace processWarning {
|
|
export interface WarningItem {
|
|
(a?: any, b?: any, c?: any): void;
|
|
name: string;
|
|
code: string;
|
|
message: string;
|
|
emitted: boolean;
|
|
unlimited: boolean;
|
|
format(a?: any, b?: any, c?: any): string;
|
|
}
|
|
|
|
export type WarningOptions = {
|
|
name: string;
|
|
code: string;
|
|
message: string;
|
|
unlimited?: boolean;
|
|
}
|
|
|
|
export type DeprecationOptions = Omit<WarningOptions, 'name'>
|
|
|
|
export type ProcessWarningOptions = {
|
|
unlimited?: boolean;
|
|
}
|
|
|
|
export type ProcessWarning = {
|
|
createWarning(params: WarningOptions): WarningItem;
|
|
createDeprecation(params: DeprecationOptions): WarningItem;
|
|
}
|
|
|
|
export function createWarning (params: WarningOptions): WarningItem
|
|
export function createDeprecation (params: DeprecationOptions): WarningItem
|
|
|
|
const processWarning: ProcessWarning
|
|
export { processWarning as default }
|
|
}
|
|
|
|
export = processWarning
|