Open sysmat opened 3 years ago
the types are not recognized by VSC example: disabled={!$state.$valid || !$state.$dirty}
Property '$valid' does not exist on type '{ name: $ControlState; }'.ts(2339)
<input
type="text"
class="form-control"
placeholder="Save as"
aria-label="Save as"
aria-describedby="SaveAs"
bind:value={$value.name}
use:controlClasses={form.child("name")}
class:is-invalid={!$state.name.$valid && $state.name.$dirty}
/>
thanks for the feedback, but am not planning to make this lib officially released, I use it in a private sapper project without TS.
I try the example, but Visual Studio Code, showing me error when using
<script lang="ts">
:<input bind:value={$value.name} use:controlClasses={form.child("name")} />