Skip to content

Commit

Permalink
refactor: Exporting vue inject and provide directly.
Browse files Browse the repository at this point in the history
  • Loading branch information
alexgrozav committed Mar 21, 2022
1 parent 2819f47 commit eb0efe2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/vue/src/provide.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { provide as nativeProvide, inject as nativeInject } from 'vue';
import { InjectFn, ProvideFn } from './types';

export const provide: ProvideFn = (identifier, value) => nativeProvide(identifier, value);
export const provide: ProvideFn = nativeProvide;

export const inject: InjectFn = (identifier, defaultValue) => nativeInject(identifier, defaultValue);
export const inject: InjectFn = nativeInject;

0 comments on commit eb0efe2

Please sign in to comment.