MCPcopy Index your code
hub / github.com/NativeScript/NativeScript / warnOnce

Function warnOnce

packages/webpack5/src/helpers/log.ts:32–39  ·  view source on GitHub ↗
(key: string, ...data: any)

Source from the content-addressed store, hash-verified

30
31const warnedMap: any = {};
32export function warnOnce(key: string, ...data: any): void {
33 if (warnedMap[key]) {
34 return;
35 }
36
37 warnedMap[key] = true;
38 warn(...data);
39}
40
41export function info(...data: any): void {
42 if (env.verbose) {

Callers 4

getPlatformNameFunction · 0.90
getTypescriptFunction · 0.90
getCLILibFunction · 0.90
angular.tsFile · 0.90

Calls 1

warnFunction · 0.70

Tested by

no test coverage detected