Files
NapCatQQ/.pnpm-store/v3/files/ed/f66569721cc17eb36a3f3cf1ee1bc66692683d900303cdc48e38924d3c50f8ce911443ac978132a73eb7b0b8b3e55b6ee01374a9f999ec7c84442188e9d472
T
TanTan e311ca3275
Build NapCat Artifacts / Windows Loader Test (push) Canceled after 0s
Build NapCat Artifacts / Type Check & Test (push) Canceled after 0s
Build NapCat Artifacts / Build NapCat.Framework (push) Canceled after 0s
Build NapCat Artifacts / Build NapCat.Shell (push) Canceled after 0s
docs: 仓库链接指向本镜像仓库
2026-11-13 09:25:58 +08:00

27 lines
751 B
Plaintext

/** A registry for user defined string formats */
const map = new Map();
/** Returns the entries in this registry */
export function Entries() {
return new Map(map);
}
/** Clears all user defined string formats */
export function Clear() {
return map.clear();
}
/** Deletes a registered format */
export function Delete(format) {
return map.delete(format);
}
/** Returns true if the user defined string format exists */
export function Has(format) {
return map.has(format);
}
/** Sets a validation function for a user defined string format */
export function Set(format, func) {
map.set(format, func);
}
/** Gets a validation function for a user defined string format */
export function Get(format) {
return map.get(format);
}