Skip to content

Commit 8008c47

Browse files
committed
docs: annotation test
1 parent 248bdc4 commit 8008c47

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

as/mod.ts

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,20 @@
11
import { asOptional, asUnoptional } from "./optional.ts";
22
import { asReadonly, asUnreadonly } from "./readonly.ts";
33

4+
export type AsCollection = {
5+
/** Annotation test1 */
6+
Optional: typeof asOptional;
7+
Readonly: typeof asReadonly;
8+
Unoptional: typeof asUnoptional;
9+
Unreadonly: typeof asUnreadonly;
10+
};
11+
412
/**
513
* Annotation collection for object predicate properties.
614
*/
7-
export const as = {
15+
export const as: AsCollection = {
816
Optional: asOptional,
17+
/** Annotation test2 */
918
Readonly: asReadonly,
1019
Unoptional: asUnoptional,
1120
Unreadonly: asUnreadonly,

0 commit comments

Comments
 (0)