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
15 lines
652 B
Plaintext
15 lines
652 B
Plaintext
import type IntlConfig from './IntlConfig.js';
|
|
/**
|
|
* Enhances the incoming props with defaults.
|
|
*/
|
|
export default function initializeConfig<Props extends IntlConfig>({ formats, getMessageFallback, messages, onError, ...rest }: Props): Omit<Props, "formats" | "messages" | "onError" | "getMessageFallback"> & {
|
|
formats: NonNullable<IntlConfig["formats"]> | undefined;
|
|
messages: NonNullable<IntlConfig["messages"]> | undefined;
|
|
onError: (error: import("./IntlError.js").default) => void;
|
|
getMessageFallback: (info: {
|
|
error: import("./IntlError.js").default;
|
|
key: string;
|
|
namespace?: string;
|
|
}) => string;
|
|
};
|