-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathtygo.yaml
35 lines (33 loc) · 1.45 KB
/
tygo.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
packages:
- path: "github.com/Anti-Raid/api/types"
output_path: "services/website/src/lib/generated/types.ts"
frontmatter: |
import { PlatformUser } from "./eureka-dovewing"
import * as discordgo from "./discordgo"
type_mappings:
time.Time: "string /* RFC3339 */"
pgtype.Text: "string | null /* nullable */"
pgtype.UUID: "string /* uuid */"
dovetypes.PlatformUser: PlatformUser /* from eureka-dovewing.ts */
pgtype.Timestamptz: "string | null /* RFC3339, nullable */"
bigint.BigInt: "string /* bigint */"
orderedmap.OrderedMap: "Record"
ext_types.GuildChannelWithPermissions: ext.GuildChannelWithPermissions
ext_types.SerenityRole: ext.SerenityRole
ext_types.Permissions: ext.Permissions
discordgo.Channel: discordgo.Channel
discordgo.ChannelType: discordgo.ChannelType
silverpelt.CanonicalCommand: silverpelt.CanonicalCommand
silverpelt.CanonicalConfigOption: silverpelt.CanonicalConfigOption
- path: "github.com/infinitybotlist/eureka/dovewing/dovetypes"
output_path: "services/website/src/lib/generated/eureka-dovewing.ts"
- path: "github.com/bwmarrin/discordgo"
output_path: "services/website/src/lib/generated/discordgo.ts"
type_mappings:
time.Time: "string /* RFC3339 */"
time.Second: "1"
time.Minute: "60"
time.Hour: "3600"
time.Millisecond: "0.001"
time.Microsecond: "0.000001"
time.Nanosecond: "0.000000001"