Skip to content

Commit

Permalink
feat: export rule types
Browse files Browse the repository at this point in the history
  • Loading branch information
nozomuikuta committed Jan 5, 2024
1 parent 3857645 commit 3b34753
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions packages/vue-v8n/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,4 @@ export { min } from './rules/min'
export { required } from './rules/required'
export { sameAs } from './rules/sameAs'
export * from './vueV8n'
export type { RuleDefinition, RuleFactoryDefinition, RuleFunction } from './types'
2 changes: 1 addition & 1 deletion packages/vue-v8n/src/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ export interface RuleFactoryDefinition<T = Record<string, unknown>> {
create: (options: T) => RuleFunction
}

type RuleFunction = (value: unknown, context: RuleContext) => string | undefined
export type RuleFunction = (value: unknown, context: RuleContext) => string | undefined

export interface RuleContext {}

Expand Down

0 comments on commit 3b34753

Please sign in to comment.