Page MenuHomeSealhub

collection.ts
No OneTemporary

collection.ts

export function collectionTemplate(collection_name: string) {
return `import { Collection, FieldTypes, Policies } from "sealious";
export default class ${collection_name} extends Collection {
fields = {
content: new FieldTypes.Text(),
};
defaultPolicy = new Policies.Public();
}
`;
}

File Metadata

Mime Type
text/plain
Expires
Fri, Jan 24, 15:15 (1 d, 15 h)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
599780
Default Alt Text
collection.ts (291 B)

Event Timeline