Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 1e2d8d2

Browse files
refactor(types): Allow null metadata in types too
1 parent d0f3bb8 commit 1e2d8d2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

‎packages/core/types/client.d.ts‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,8 +34,8 @@ declare class Client {
3434
): void;
3535

3636
// metadata
37-
public addMetadata(section: string, values: { [key: string]: any }): void;
38-
public addMetadata(section: string, key: string, value: any): void;
37+
public addMetadata(section: string|null, values: { [key: string]: any }): void;
38+
public addMetadata(section: string|null, key: string, value: any): void;
3939
public getMetadata(section: string, key?: string): any;
4040
public clearMetadata(section: string, key?: string): void;
4141

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /