mirror of
https://github.com/pockethost/pockethost.git
synced 2025-09-15 13:10:14 +00:00
19 lines
475 B
Handlebars
19 lines
475 B
Handlebars
import { BaseFields, RecordId } from './types'
|
|
|
|
export const <%=NAME_NAME> = '<%=dashName%>'
|
|
|
|
export type <%=NameName%>Id = string
|
|
|
|
export type <%=NameName%>Collection = {
|
|
[name: <%=NameName%>Id]: <%=NameName%>Fields
|
|
}
|
|
|
|
export type <%=NameName%>Fields = BaseFields & {
|
|
userCount: number
|
|
instanceCount: number
|
|
}
|
|
|
|
export type <%=NameName%>Fields_Create = Omit<<%=NameName%>Fields, keyof BaseFields>
|
|
|
|
export type <%=NameName%>ById = { [_: RecordId]: <%=NameName%>Fields }
|