A stylesheet language written in TypeScript that compiles to CSS
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

error.ts 226B

12345678910111213
  1. export interface Error {
  2. line: number;
  3. message: string;
  4. module?: string;
  5. }
  6. export const isError = (obj: any): obj is Error => {
  7. try {
  8. return 'line' in obj && 'message' in obj;
  9. } catch {
  10. return false;
  11. }
  12. };