A stylesheet language written in TypeScript that compiles to CSS
Du kan inte välja fler än 25 ämnen
Ämnen måste starta med en bokstav eller siffra, kan innehålla bindestreck ('-') och vara max 35 tecken långa.
12345678910111213 |
- export interface Error {
- line: number;
- message: string;
- module?: string;
- }
-
- export const isError = (obj: any): obj is Error => {
- try {
- return 'line' in obj && 'message' in obj;
- } catch {
- return false;
- }
- };
|