Skip to content

Commit

Permalink
feat(api): add IClear interface
Browse files Browse the repository at this point in the history
  • Loading branch information
postspectacular committed Dec 29, 2019
1 parent f040eb5 commit 38f03ff
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
10 changes: 10 additions & 0 deletions packages/api/src/api/clear.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
/**
* Interface for mutable types supporting internal cleanup (e.g.
* removing all values in a container etc.).
*
* @remarks
* Also see {@link IEmpty} and {@link IRelease} for related operations.
*/
export interface IClear {
clear(): void;
}
1 change: 1 addition & 0 deletions packages/api/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ export * from "./api";
export * from "./api/assoc";
export * from "./api/bind";
export * from "./api/buffered";
export * from "./api/clear";
export * from "./api/compare";
export * from "./api/contains";
export * from "./api/copy";
Expand Down

0 comments on commit 38f03ff

Please sign in to comment.