-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add prisma-json-types-generator to Forms BE (#2137)
* Install prisma-json-types-generator * Create PrismaJson types * Type existing JSON types in schema.prisma * Replace all types castings with real types * Add EmptyFormDataErrorDto * Add checks for empty form data * Adjust tests where possible * Update typescript and related packages to latest version * Change tsconfig module/moduleResolution
- Loading branch information
1 parent
5f9d684
commit 51c25b7
Showing
31 changed files
with
356 additions
and
103 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
import type { FormSummary as _FormSummary } from 'forms-shared/summary/summary' | ||
import type { GenericObjectType } from '@rjsf/utils' | ||
|
||
declare global { | ||
namespace PrismaJson { | ||
type FormDataJson = GenericObjectType | ||
|
||
type FormSummary = _FormSummary | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.