Provides TypeScript type definitions for prisma-schema-dsl, enabling typed AST manipulation of Prisma schema files. Current version 1.1.2, release schedule follows prisma-schema-dsl. Differentiator: tightly coupled to the prisma-schema-dsl library for building and transforming Prisma schema ASTs with full type safety.
npm install prisma-schema-dsl-typesNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Creates a typed Prisma schema AST for a User model with id and email fields, then logs the JSON representation.
Use string type names directly, e.g., 'String' instead of FieldType.String.
Use ES module import syntax. If using Node.js, ensure package.json has "type": "module" or use .mjs extension.
Use Attribute with name 'unique' instead of isUnique field property.
npm install prisma-schema-dsl-types@1.1.2
Check Field type definition: ensure all required fields (name, type, isRequired) are present and correct.
No dependency data recorded yet.