Download packages/data-schemas/src/models/sharedLink.ts from helloya20/chat: direct link, hf CLI and curl.
- Browser
- Download file 333 Bytes
-
https://huggingface.co/spaces/helloya20/chat/resolve/main/packages/data-schemas/src/models/sharedLink.ts
- Command line
-
hf download hf://spaces/helloya20/chat/packages/data-schemas/src/models/sharedLink.ts
-
curl -L -o sharedLink.ts https://huggingface.co/spaces/helloya20/chat/resolve/main/packages/data-schemas/src/models/sharedLink.ts
333 Bytes
| import shareSchema, { ISharedLink } from '~/schema/share'; | |
| /** | |
| * Creates or returns the SharedLink model using the provided mongoose instance and schema | |
| */ | |
| export function createSharedLinkModel(mongoose: typeof import('mongoose')) { | |
| return mongoose.models.SharedLink || mongoose.model<ISharedLink>('SharedLink', shareSchema); | |
| } | |