src/schema.bend fails
raw source on the hub · import 0x36c893ade1f158581b4c8c34eb3b510e/src/schema.bend as Schema
3 imports
import Base import ./json.bend as Json import ./server.bend as Web
The reader could not load this file (at 0x36c893ade1f158581b4c8c34eb3b510e/src/schema.bend:9). What bend.ts says:
Error:
- expected : a fresh constructor name (duplicate declaration: Text)
- observed : 'Text'
Location:
8 | type Schema is Data:
9>| Text{min: Nat, max: Nat}
| ^^^^
10 | UInt{min: U32, max: U32}