Last change
on this file was 6a3a178, checked in by Ema <ema_spirova@…>, 3 years ago |
initial commit
|
-
Property mode
set to
100644
|
File size:
693 bytes
|
Line | |
---|
1 | /**
|
---|
2 | * @license
|
---|
3 | * Copyright Google LLC All Rights Reserved.
|
---|
4 | *
|
---|
5 | * Use of this source code is governed by an MIT-style license that can be
|
---|
6 | * found in the LICENSE file at https://angular.io/license
|
---|
7 | */
|
---|
8 | export interface Position {
|
---|
9 | fileName: string;
|
---|
10 | line: number;
|
---|
11 | column: number;
|
---|
12 | }
|
---|
13 | export interface FormattedMessageChain {
|
---|
14 | message: string;
|
---|
15 | position?: Position;
|
---|
16 | next?: FormattedMessageChain[];
|
---|
17 | }
|
---|
18 | export declare type FormattedError = Error & {
|
---|
19 | chain: FormattedMessageChain;
|
---|
20 | position?: Position;
|
---|
21 | };
|
---|
22 | export declare function formattedError(chain: FormattedMessageChain): FormattedError;
|
---|
23 | export declare function isFormattedError(error: Error): error is FormattedError;
|
---|
Note:
See
TracBrowser
for help on using the repository browser.