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 23e3a02

Browse files
refactor(types): Allow null section in event metadata
1 parent 1e2d8d2 commit 23e3a02

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,8 +38,8 @@ declare class Event {
3838
public setUser(id?: string, email?: string, name?: string): void;
3939

4040
// metadata
41-
public addMetadata(section: string, values: { [key: string]: any }): void;
42-
public addMetadata(section: string, key: string, value: any): void;
41+
public addMetadata(section: string|null, values: { [key: string]: any }): void;
42+
public addMetadata(section: string|null, key: string, value: any): void;
4343
public getMetadata(section: string, key?: string): any;
4444
public clearMetadata(section: string, key?: string): void;
4545
}

0 commit comments

Comments
(0)

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