Skip to content

Commit

Permalink
fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
ascott18 committed Nov 27, 2024
1 parent 8c4c0af commit bbdbed6
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ Examples of other props:

## Props

Note: In addition to the below props, `c-select` also supports most props that are supported by Vuetify's [v-text-field](https://vuetifyjs.com/en/components/text-fields/#api).
Note: In addition to the below props, `c-select` also supports most props that are supported by Vuetify's [v-text-field](https://vuetifyjs.com/en/components/text-fields/).

<Prop def="for: string | ForeignKeyProperty | ModelReferenceNavigationProperty | ModelType" lang="ts" />

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ TModel extends Model ?
)

// Fallback to allowing anything:
: undefined | string | ValueKind ;
: undefined | string | ValueKind;

export type MethodForSpec<
TModel extends
Expand Down
Empty file.
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,7 @@ describe("CSelect", () => {
// Implicit `multiple` for object collection
() => (<CSelect model={complexVm.methodWithManyParams} for="modelCollection" modelValue={[testVm]} onUpdate:modelValue={receivesTestModels} />);

//@ts-expect-error Explicit `multiple` for object collection requires arrays
//@ts-expect-error Explicit `multiple` for object non-collection is disallowed
() => (<CSelect model={complexVm.methodWithManyParams} for="model" multiple modelValue={[testVm]} onUpdate:modelValue={receivesTestModels} />);
//@ts-expect-error Explicit `multiple` for object non-collection is disallowed
() => (<CSelect model={complexVm.methodWithManyParams} for="model" multiple modelValue={testVm} onUpdate:modelValue={receivesTestModel} />);
Expand Down

0 comments on commit bbdbed6

Please sign in to comment.