MCPcopy
hub / github.com/strapi/strapi / warn

Function warn

packages/utils/typescript/lib/generators/utils.js:154–162  ·  view source on GitHub ↗
(...args)

Source from the content-addressed store, hash-verified

152 },
153
154 warn(...args) {
155 state.warning += 1;
156
157 if (silent) {
158 return;
159 }
160
161 console.warn(chalk.yellow(`[WARN]\t[${new Date().toISOString()}] (Typegen)`), ...args);
162 },
163
164 error(...args) {
165 state.errors += 1;

Callers

nothing calls this directly

Calls 1

warnMethod · 0.65

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…