Skip to content

Commit 618bf1e

Browse files
committed
Update types
1 parent 57997e5 commit 618bf1e

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

types/stack/contentType/index.d.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ export interface ContentType extends SystemFields, SystemFunction<ContentType> {
88
}
99

1010
export interface ContentTypes extends Queryable<ContentType, {content_type: ContentTypeData}> {
11-
import({content_type: string}): Promise<ContentType>
11+
import(data: {content_type: string}): Promise<ContentType>
1212
generateUid(name: string): string
1313
}
1414

types/stack/globalField/index.d.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ export interface GlobalField extends SystemFields, SystemFunction<GlobalField> {
77
}
88

99
export interface GlobalFields extends Queryable<GlobalField, {global_field: GlobalFieldData}> {
10-
import({global_field: string}): Promise<GlobalField>
10+
import(data: {global_field: string}): Promise<GlobalField>
1111
}
1212

1313
export interface GlobalFieldData extends AnyProperty {

types/stack/index.d.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ export interface Stack extends SystemFields {
6363
deliveryToken(uid: string): DeliveryToken
6464

6565
extension(): Extensions
66-
extension(uid): Extension
66+
extension(uid: string): Extension
6767

6868
workflow(): Workflows
6969
workflow(uid: string): Workflow
@@ -81,7 +81,7 @@ export interface Stack extends SystemFields {
8181

8282
user(): Promise<Array<User>>
8383
updateUsersRoles(users: AnyProperty): Promise<any>
84-
transferOwnership(email): Promise<Response>
84+
transferOwnership(email: string): Promise<Response>
8585
settings(): Promise<any>
8686
resetSettings(): Promise<any>
8787
addSettings(stackVariables: AnyProperty): Promise<any>

0 commit comments

Comments
 (0)