Skip to content

Commit a5405ba

Browse files
author
Chris Nixon
authored
Add delete and alias types (#120)
* Add delete class to declaration file * Add alias type
1 parent eb224ef commit a5405ba

File tree

1 file changed

+23
-0
lines changed

1 file changed

+23
-0
lines changed

index.d.ts

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -504,6 +504,29 @@ declare namespace Facade {
504504
}
505505

506506
export class Screen<T = { [key: string]: any }> extends Page<T> {}
507+
508+
export class Delete<T = { [key: string]: any }> extends Facade<T> {}
509+
510+
export class Alias<T = { [key: string]: any }> extends Facade<T> {
511+
/**
512+
* Get the user's previous ID from previousId or from.
513+
* This should be a string, but may not be if the client isn't adhering to the spec.
514+
*/
515+
previousId(): unknown
516+
/**
517+
* An alias for .previousId.
518+
*/
519+
from(): unknown
520+
/**
521+
* An alias for .userId
522+
*/
523+
to(): unknown
524+
/**
525+
* Get the user's new ID from userId or to.
526+
* This should be a string, but may not be if the client isn't adhering to the spec.
527+
*/
528+
userId(): unknown
529+
}
507530
}
508531

509532
declare module "segmentio-facade" {

0 commit comments

Comments
 (0)