Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
38 changes: 0 additions & 38 deletions docs/cli/generate-rules.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -65,44 +65,6 @@ typesync generate-rules --definition <filePathOrPattern> --outFile <filePath> --
The name of the parameter taken by each type validator.
</ParamField>

{/\* <ParamField
type="string"
path="readonlyFieldValidatorNamePattern"
default="isReadonlyFieldAffectedFor{modelName}"

> The pattern that specifies how the generated readonly field validators are named. The pattern must be a string that contains the `"{modelName}"` substring (this is a literal value).

Example values:

- `"isReadonlyFieldAffectedFor{modelName}"` -> produces validators like `isReadonlyFieldAffectedForUser`, `isReadonlyFieldAffectedForProject`, `isReadonlyFieldAffectedForAccount` etc.
- `"affectsReadonlyFieldFor{modelName}"` -> produces validators like `affectsReadonlyFieldForUser`, `affectsReadonlyFieldForProject`, `affectsReadonlyFieldForAccount` etc.

</ParamField> */}

{/\* <ParamField
type="string"
path="readonlyFieldValidatorPrevDataParamName"
default="prevData"

> The name of the first parameter taken by each readonly field validator
> representing previous data. This parameter used when computing the diff
> between next data and previous data to determine whether a readonly field has
> been affected by a write.

</ParamField> */}

{/\* <ParamField
type="string"
path="readonlyFieldValidatorNextDataParamName"
default="nextData"

> The name of the second parameter taken by each readonly field validator
> representing next data. This parameter used when computing the diff between
> next data and previous data to determine whether a readonly field has been
> affected by a write.

</ParamField> */}

<IndentationOption />
<DebugOption />

Expand Down
60 changes: 29 additions & 31 deletions docs/docs.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"$schema": "https://mintlify.com/schema.json",
"$schema": "https://mintlify.com/docs.json",
"theme": "mint",
"name": "typesync",
"favicon": "/favicon.svg",
Expand All @@ -14,36 +14,32 @@
}
},
"logo": { "light": "images/logo-light.png", "dark": "images/logo-dark.png" },
"topbarLinks": [
{
"type": "link",
"name": "Discord",
"url": "https://discord.gg/Hb2HW98DvF"
"navbar": {
"primary": {
"type": "github",
"href": "https://github.com/kafkas/typesync"
}
],
"topbarCtaButton": {
"type": "link",
"name": "GitHub",
"url": "https://github.com/kafkas/typesync"
},
"anchors": [
{
"name": "GitHub",
"icon": "github",
"url": "https://github.com/kafkas/typesync"
},
{
"name": "Changelog",
"icon": "list-tree",
"url": "https://github.com/kafkas/typesync/blob/main/CHANGELOG.md"
},
{
"name": "Support",
"icon": "discord",
"url": "https://discord.gg/Hb2HW98DvF"
}
],
"navigation": {
"global": {
"anchors": [
{
"anchor": "GitHub",
"icon": "github",
"href": "https://github.com/kafkas/typesync"
},
{
"anchor": "Changelog",
"icon": "list-tree",
"href": "https://github.com/kafkas/typesync/blob/main/CHANGELOG.md"
},
{
"anchor": "Support",
"icon": "discord",
"href": "https://discord.gg/Hb2HW98DvF"
}
]
},
"groups": [
{
"group": "Overview",
Expand All @@ -67,8 +63,10 @@
}
]
},
"footerSocials": {
"discord": "https://discord.gg/Hb2HW98DvF",
"github": "https://github.com/kafkas/typesync"
"footer": {
"socials": {
"discord": "https://discord.gg/Hb2HW98DvF",
"github": "https://github.com/kafkas/typesync"
}
}
}
Loading