MCPcopy
hub / github.com/postcss/postcss / isSyntaxError

Function isSyntaxError

test/css-syntax-error.test.ts:16–18  ·  view source on GitHub ↗
(e: unknown)

Source from the content-addressed store, hash-verified

14} from '../lib/postcss.js'
15
16function isSyntaxError(e: unknown): e is CssSyntaxError {
17 return e instanceof Error && e.name === 'CssSyntaxError'
18}
19
20async function catchError(cb: () => Promise<any>): Promise<CssSyntaxError> {
21 try {

Callers 2

catchErrorFunction · 0.85
parseErrorFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…