@@ -10,7 +10,7 @@ import { Observable } from 'rxjs';
10
10
import { Observer } from ' rxjs' ;
11
11
import { Operator } from ' rxjs' ;
12
12
import { PartialObserver } from ' rxjs' ;
13
- import { Position as Position_2 } from ' source-map' ;
13
+ import { Position } from ' source-map' ;
14
14
import { Subject } from ' rxjs' ;
15
15
import { SubscribableOrPromise } from ' rxjs' ;
16
16
import { Subscription } from ' rxjs' ;
@@ -530,19 +530,6 @@ class IndentLogger extends Logger {
530
530
constructor (name : string , parent ? : Logger | null , indentation ? : string );
531
531
}
532
532
533
- // @public @deprecated
534
- export class InvalidJsonCharacterException extends JsonException {
535
- constructor (context : JsonParserContext );
536
- // (undocumented)
537
- character: number ;
538
- // (undocumented)
539
- invalidChar: string ;
540
- // (undocumented)
541
- line: number ;
542
- // (undocumented)
543
- offset: number ;
544
- }
545
-
546
533
// @public (undocumented)
547
534
export class InvalidPathException extends BaseException {
548
535
constructor (path : string );
@@ -855,201 +842,23 @@ declare namespace json {
855
842
schema ,
856
843
isJsonObject ,
857
844
isJsonArray ,
858
- Position ,
859
- JsonAstNode ,
860
- JsonAstNodeBase ,
861
- JsonAstNumber ,
862
- JsonAstString ,
863
- JsonAstIdentifier ,
864
845
JsonArray ,
865
- JsonAstArray ,
866
846
JsonObject ,
867
- JsonAstKeyValue ,
868
- JsonAstObject ,
869
- JsonAstConstantFalse ,
870
- JsonAstConstantNull ,
871
- JsonAstConstantTrue ,
872
- JsonAstMultilineComment ,
873
- JsonAstComment ,
874
- JsonValue ,
875
- parseJsonAst ,
876
- parseJson ,
877
- JsonException ,
878
- InvalidJsonCharacterException ,
879
- UnexpectedEndOfInputException ,
880
- PathSpecificJsonException ,
881
- JsonParserContext ,
882
- JsonParseMode ,
883
- ParseJsonOptions
847
+ JsonValue
884
848
}
885
849
}
886
850
export { json }
887
851
888
- // @public (undocumented)
852
+ // @public
889
853
export interface JsonArray extends Array <JsonValue > {
890
854
}
891
855
892
- // @public (undocumented)
893
- export interface JsonAstArray extends JsonAstNodeBase {
894
- // (undocumented)
895
- readonly elements: JsonAstNode [];
896
- // (undocumented)
897
- readonly kind: ' array' ;
898
- // (undocumented)
899
- readonly value: JsonArray ;
900
- }
901
-
902
- // @public (undocumented)
903
- export interface JsonAstComment extends JsonAstNodeBase {
904
- // (undocumented)
905
- readonly content: string ;
906
- // (undocumented)
907
- readonly kind: ' comment' ;
908
- }
909
-
910
- // @public (undocumented)
911
- export interface JsonAstConstantFalse extends JsonAstNodeBase {
912
- // (undocumented)
913
- readonly kind: ' false' ;
914
- // (undocumented)
915
- readonly value: false ;
916
- }
917
-
918
- // @public (undocumented)
919
- export interface JsonAstConstantNull extends JsonAstNodeBase {
920
- // (undocumented)
921
- readonly kind: ' null' ;
922
- // (undocumented)
923
- readonly value: null ;
924
- }
925
-
926
- // @public (undocumented)
927
- export interface JsonAstConstantTrue extends JsonAstNodeBase {
928
- // (undocumented)
929
- readonly kind: ' true' ;
930
- // (undocumented)
931
- readonly value: true ;
932
- }
933
-
934
- // @public (undocumented)
935
- export interface JsonAstIdentifier extends JsonAstNodeBase {
936
- // (undocumented)
937
- readonly kind: ' identifier' ;
938
- // (undocumented)
939
- readonly value: string ;
940
- }
941
-
942
- // @public (undocumented)
943
- export interface JsonAstKeyValue extends JsonAstNodeBase {
944
- // (undocumented)
945
- readonly key: JsonAstString | JsonAstIdentifier ;
946
- // (undocumented)
947
- readonly kind: ' keyvalue' ;
948
- // (undocumented)
949
- readonly value: JsonAstNode ;
950
- }
951
-
952
- // @public (undocumented)
953
- export interface JsonAstMultilineComment extends JsonAstNodeBase {
954
- // (undocumented)
955
- readonly content: string ;
956
- // (undocumented)
957
- readonly kind: ' multicomment' ;
958
- }
959
-
960
- // @public (undocumented)
961
- export type JsonAstNode = JsonAstNumber | JsonAstString | JsonAstIdentifier | JsonAstArray | JsonAstObject | JsonAstConstantFalse | JsonAstConstantNull | JsonAstConstantTrue ;
962
-
963
- // @public (undocumented)
964
- export interface JsonAstNodeBase {
965
- // (undocumented)
966
- readonly comments? : (JsonAstComment | JsonAstMultilineComment )[];
967
- // (undocumented)
968
- readonly end: Position ;
969
- // (undocumented)
970
- readonly start: Position ;
971
- // (undocumented)
972
- readonly text: string ;
973
- }
974
-
975
- // @public (undocumented)
976
- export interface JsonAstNumber extends JsonAstNodeBase {
977
- // (undocumented)
978
- readonly kind: ' number' ;
979
- // (undocumented)
980
- readonly value: number ;
981
- }
982
-
983
- // @public (undocumented)
984
- export interface JsonAstObject extends JsonAstNodeBase {
985
- // (undocumented)
986
- readonly kind: ' object' ;
987
- // (undocumented)
988
- readonly properties: JsonAstKeyValue [];
989
- // (undocumented)
990
- readonly value: JsonObject ;
991
- }
992
-
993
- // @public (undocumented)
994
- export interface JsonAstString extends JsonAstNodeBase {
995
- // (undocumented)
996
- readonly kind: ' string' ;
997
- // (undocumented)
998
- readonly value: string ;
999
- }
1000
-
1001
- // @public (undocumented)
1002
- export class JsonException extends BaseException {
1003
- }
1004
-
1005
856
// @public (undocumented)
1006
857
export interface JsonObject {
1007
858
// (undocumented)
1008
859
[prop : string ]: JsonValue ;
1009
860
}
1010
861
1011
- // @public
1012
- export enum JsonParseMode {
1013
- // (undocumented)
1014
- CommentsAllowed = 1 ,
1015
- // (undocumented)
1016
- Default = 0 ,
1017
- // (undocumented)
1018
- HexadecimalNumberAllowed = 16 ,
1019
- // (undocumented)
1020
- IdentifierKeyNamesAllowed = 4 ,
1021
- // (undocumented)
1022
- Json = 0 ,
1023
- // (undocumented)
1024
- Json5 = 255 ,
1025
- // (undocumented)
1026
- LaxNumberParsingAllowed = 64 ,
1027
- // (undocumented)
1028
- Loose = 255 ,
1029
- // (undocumented)
1030
- MultiLineStringAllowed = 32 ,
1031
- // (undocumented)
1032
- NumberConstantsAllowed = 128 ,
1033
- // (undocumented)
1034
- SingleQuotesAllowed = 2 ,
1035
- // (undocumented)
1036
- Strict = 0 ,
1037
- // (undocumented)
1038
- TrailingCommasAllowed = 8
1039
- }
1040
-
1041
- // @public @deprecated
1042
- export interface JsonParserContext {
1043
- // (undocumented)
1044
- readonly mode: JsonParseMode ;
1045
- // (undocumented)
1046
- readonly original: string ;
1047
- // (undocumented)
1048
- position: Position ;
1049
- // (undocumented)
1050
- previous: Position ;
1051
- }
1052
-
1053
862
// @public (undocumented)
1054
863
type JsonPointer = string & {
1055
864
__PRIVATE_DEVKIT_JSON_POINTER: void ;
@@ -1065,7 +874,7 @@ interface JsonSchemaVisitor {
1065
874
}
1066
875
1067
876
// @public (undocumented)
1068
- export type JsonValue = JsonAstNode [ ' value ' ] ;
877
+ export type JsonValue = boolean | string | number | JsonArray | JsonObject | null ;
1069
878
1070
879
// @public (undocumented)
1071
880
interface JsonVisitor {
@@ -1368,17 +1177,6 @@ interface PageviewOptions extends CustomDimensionsAndMetricsOptions {
1368
1177
title? : string ;
1369
1178
}
1370
1179
1371
- // @public @deprecated
1372
- export function parseJson(input : string , mode ? : JsonParseMode , options ? : ParseJsonOptions ): JsonValue ;
1373
-
1374
- // @public @deprecated
1375
- export function parseJsonAst(input : string , mode ? : JsonParseMode ): JsonAstNode ;
1376
-
1377
- // @public @deprecated
1378
- export interface ParseJsonOptions {
1379
- path? : string ;
1380
- }
1381
-
1382
1180
// @public (undocumented)
1383
1181
function parseJsonPointer(pointer : JsonPointer ): string [];
1384
1182
@@ -1440,15 +1238,6 @@ export class PathMustBeAbsoluteException extends BaseException {
1440
1238
constructor (path : string );
1441
1239
}
1442
1240
1443
- // @public @deprecated
1444
- export class PathSpecificJsonException extends JsonException {
1445
- constructor (path : string , exception : JsonException );
1446
- // (undocumented)
1447
- exception: JsonException ;
1448
- // (undocumented)
1449
- path: string ;
1450
- }
1451
-
1452
1241
// @public (undocumented)
1453
1242
class PatternMatchingHost <StatsT extends object = {}> extends ResolverHost <StatsT > {
1454
1243
// (undocumented)
@@ -1459,16 +1248,6 @@ class PatternMatchingHost<StatsT extends object = {}> extends ResolverHost<Stats
1459
1248
protected _resolve(path : Path ): Path ;
1460
1249
}
1461
1250
1462
- // @public
1463
- export interface Position {
1464
- // (undocumented)
1465
- readonly character: number ;
1466
- // (undocumented)
1467
- readonly line: number ;
1468
- // (undocumented)
1469
- readonly offset: number ;
1470
- }
1471
-
1472
1251
// @public (undocumented)
1473
1252
export type PosixPath = string & {
1474
1253
__PRIVATE_DEVKIT_POSIX_PATH: void ;
@@ -2083,9 +1862,9 @@ export interface TemplateAst {
2083
1862
// @public
2084
1863
export interface TemplateAstBase {
2085
1864
// (undocumented)
2086
- end: Position_2 ;
1865
+ end: Position ;
2087
1866
// (undocumented)
2088
- start: Position_2 ;
1867
+ start: Position ;
2089
1868
}
2090
1869
2091
1870
// @public
@@ -2244,11 +2023,6 @@ function trimNewlines(strings: TemplateStringsArray, ...values: any[]): string;
2244
2023
// @public
2245
2024
function underscore(str : string ): string ;
2246
2025
2247
- // @public @deprecated
2248
- export class UnexpectedEndOfInputException extends JsonException {
2249
- constructor (_context : JsonParserContext );
2250
- }
2251
-
2252
2026
// @public (undocumented)
2253
2027
export class UnimplementedException extends BaseException {
2254
2028
constructor ();
0 commit comments