mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-10-07 08:17:05 +00:00
Merge pull request #32196 from ianhowe76/master
feat(auth0): Update UserMetadata to have any type for value
This commit is contained in:
@@ -147,11 +147,21 @@ management
|
||||
management
|
||||
.updateUser({id: "user_id"}, {"email": "hi@me.co"}, (err: Error, users: auth0.User) => {});
|
||||
|
||||
|
||||
// Update user metadata
|
||||
management
|
||||
.updateUserMetadata({id: "user_id"}, {"key": "value"});
|
||||
|
||||
// Update user metadata with JSON object
|
||||
management
|
||||
.updateUserMetadata({id: "user_id"}, {
|
||||
key: "value",
|
||||
numKey: 123,
|
||||
objKey: {
|
||||
foo: "bar",
|
||||
another: "value"
|
||||
}
|
||||
});
|
||||
|
||||
// Update user metadata using callback
|
||||
management
|
||||
.updateUserMetadata({id: "user_id"}, {"key": "value"}, (err: Error, users: auth0.User) => {});
|
||||
|
||||
Vendored
+3
-2
@@ -1,6 +1,7 @@
|
||||
// Type definitions for auth0 2.9.2
|
||||
// Type definitions for auth0 2.9.3
|
||||
// Project: https://github.com/auth0/node-auth0
|
||||
// Definitions by: Seth Westphal <https://github.com/westy92>
|
||||
// Ian Howe <https://github.com/ianhowe76>
|
||||
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
||||
// TypeScript Version: 2.8
|
||||
|
||||
@@ -32,7 +33,7 @@ export interface RetryOptions {
|
||||
}
|
||||
|
||||
export interface UserMetadata {
|
||||
[propName: string]: string
|
||||
[propName: string]: any
|
||||
}
|
||||
|
||||
export interface AppMetadata {
|
||||
|
||||
Reference in New Issue
Block a user