Skip to content

Commit 0c2b807

Browse files
author
Alexander Suevalov
authoredAug 4, 2020
fix: incorrect types for environment aliases (#414)
1 parent 3d12a46 commit 0c2b807

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed
 

‎lib/entities/environment-alias.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ export type EnvironmentAliasProps = {
1111
* System meta data
1212
*/
1313
sys: MetaSysProps
14-
environment: MetaLinkProps
14+
environment: { sys: MetaLinkProps }
1515
}
1616

1717
export interface EnvironmentAlias
@@ -39,7 +39,7 @@ export interface EnvironmentAlias
3939
* .catch(console.error)
4040
* ```
4141
*/
42-
update(data: Omit<EnvironmentAliasProps, 'sys'>): Promise<EnvironmentAlias>
42+
update(): Promise<EnvironmentAlias>
4343
}
4444

4545
function createEnvironmentAliasApi(http: AxiosInstance) {

0 commit comments

Comments
 (0)
Please sign in to comment.