Skip to content

Commit

Permalink
refactor: 型エラー修正
Browse files Browse the repository at this point in the history
  • Loading branch information
the-red committed Apr 3, 2023
1 parent 5c1d2e3 commit f039392
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/util.ts
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ export const createBase64Account = async (...account: [string, string?]) => {
return base64Account
}

export const loadRequiedFile = <T>(configFileName: string): T => {
export const loadRequiedFile = <T extends Record<string, any>>(configFileName: string): T => {
try {
const config = rcFile<T>('config', { configFileName })
if (!config) {
Expand Down

0 comments on commit f039392

Please sign in to comment.