From 8008c4791cf6511af93462f144169f5d4ef14e60 Mon Sep 17 00:00:00 2001 From: Alisue Date: Fri, 9 Aug 2024 11:20:48 +0900 Subject: [PATCH] docs: annotation test --- as/mod.ts | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/as/mod.ts b/as/mod.ts index 0f46786..0a3ec82 100644 --- a/as/mod.ts +++ b/as/mod.ts @@ -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,