Skip to content

Commit

Permalink
docs: annotation test
Browse files Browse the repository at this point in the history
  • Loading branch information
lambdalisue committed Aug 9, 2024
1 parent 248bdc4 commit 8008c47
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion as/mod.ts
Original file line number Diff line number Diff line change
@@ -1,11 +1,20 @@
import { asOptional, asUnoptional } from "./optional.ts";
import { asReadonly, asUnreadonly } from "./readonly.ts";

export type AsCollection = {
/** Annotation test1 */
Optional: typeof asOptional;
Readonly: typeof asReadonly;
Unoptional: typeof asUnoptional;
Unreadonly: typeof asUnreadonly;
};

/**
* Annotation collection for object predicate properties.
*/
export const as = {
export const as: AsCollection = {
Optional: asOptional,
/** Annotation test2 */
Readonly: asReadonly,
Unoptional: asUnoptional,
Unreadonly: asUnreadonly,
Expand Down

0 comments on commit 8008c47

Please sign in to comment.