Skip to content

Commit 26931f5

Browse files
authored
Merge pull request #133 from falsandtru/storage
Update Storage interface
2 parents c3abecf + 688912f commit 26931f5

File tree

2 files changed

+9
-3
lines changed

2 files changed

+9
-3
lines changed

baselines/dom.generated.d.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11411,8 +11411,8 @@ declare var StereoPannerNode: {
1141111411
interface Storage {
1141211412
readonly length: number;
1141311413
clear(): void;
11414-
getItem(key: string): string;
11415-
key(index: number): string;
11414+
getItem(key: string): string | null;
11415+
key(index: number): string | null;
1141611416
removeItem(key: string): void;
1141711417
setItem(key: string, data: string): void;
1141811418
[key: string]: any;

inputfiles/overridingTypes.json

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -580,7 +580,13 @@
580580
"kind": "method",
581581
"interface": "Storage",
582582
"name": "getItem",
583-
"signatures": ["getItem(key: string): string"]
583+
"signatures": ["getItem(key: string): string | null"]
584+
},
585+
{
586+
"kind": "method",
587+
"interface": "Storage",
588+
"name": "key",
589+
"signatures": ["key(index: number): string | null"]
584590
},
585591
{
586592
"kind": "method",

0 commit comments

Comments
 (0)