Skip to content

Commit

Permalink
feat(star-atlas): update format
Browse files Browse the repository at this point in the history
  • Loading branch information
emberist committed Jun 3, 2024
1 parent c77c2c7 commit d680352
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 18 deletions.
1 change: 1 addition & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
{
"editor.formatOnSave": true,
"typescript.preferences.importModuleSpecifier": "project-relative"
}
20 changes: 2 additions & 18 deletions libs/star-atlas/src/entities/nft/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,26 +25,10 @@ export const attributeCodec = t.type({
edition: optional(t.string),
});

const crewCodec = t.union([
t.literal('medium'),
t.literal('x-small'),
t.literal('small'),
t.literal('large'),
t.literal('xx-small'),
t.literal('capital'),
t.literal('commander'),
t.literal('class 8'),
t.literal('xxx-small'),
t.literal('Class 8'),
t.literal('titan'),
t.literal('crew'),
t.literal('XX-Small'),
]);

const slotCodec = t.type({
crew: optional(crewCodec),
crew: optional(t.string),
type: t.string,
size: optional(crewCodec),
size: optional(t.string),
quantity: t.number,
});

Expand Down

0 comments on commit d680352

Please sign in to comment.