Skip to content

Commit

Permalink
feat(runtime-core): export InferDefaults type
Browse files Browse the repository at this point in the history
  • Loading branch information
FireBushtree committed Jun 17, 2024
1 parent e5ca13a commit beb1f44
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion packages/runtime-core/src/apiSetupHelpers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -288,7 +288,7 @@ type MappedOmit<T, K extends keyof any> = {
[P in keyof T as P extends K ? never : P]: T[P]
}

type InferDefaults<T> = {
export type InferDefaults<T> = {
[K in keyof T]?: InferDefault<T, T[K]>
}

Expand Down
1 change: 1 addition & 0 deletions packages/runtime-core/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,7 @@ export {
withDefaults,
type DefineProps,
type ModelRef,
type InferDefaults,
} from './apiSetupHelpers'

/**
Expand Down

0 comments on commit beb1f44

Please sign in to comment.