Skip to content

Commit ca4154d

Browse files
committed
type fixes
1 parent 9510fc0 commit ca4154d

File tree

3 files changed

+2
-7
lines changed

3 files changed

+2
-7
lines changed

src/typescript/sfc.d.ts

-5
This file was deleted.

src/typescript/store.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ export default createStore<State>({
99
year: '1970'
1010
},
1111
actions: {
12-
onSetYear: (context: ActionContext, year: string) => {
12+
onSetYear: (context: ActionContext<State, State>, year: string) => {
1313
context.commit('setYear', year);
1414
}
1515
},

src/typescript/version.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,4 @@ import { version, provide, inject } from 'vue';
33
const versionSymbol: unique symbol = Symbol('version');
44

55
export const provideVersion = (): void => provide(versionSymbol, version);
6-
export const useVersion = (): string => inject(versionSymbol);
6+
export const useVersion = (): string | undefined => inject(versionSymbol);

0 commit comments

Comments
 (0)