chore: fix ts types
This commit is contained in:
parent
d03b8a2e5a
commit
1a61946065
@ -97,7 +97,7 @@ class Git {
|
||||
|
||||
createTag = (tag: string) => this.exec(`tag -a ${tag} -m "${tag}"`);
|
||||
|
||||
async pushNewFiles(files: File[] = []): Promise<any> {
|
||||
async pushNewFiles(files: File[] = []): Promise<unknown> {
|
||||
if (!files.length) return;
|
||||
|
||||
await this.pull();
|
||||
|
@ -7,7 +7,7 @@ export const REPO_USERNAME = process.env.GITHUB_REPOSITORY?.split('/')[0];
|
||||
export const API_STARRED_URL = `${process.env.GITHUB_API_URL}/users/${REPO_USERNAME}/starred`;
|
||||
|
||||
export async function renderer(
|
||||
data: { [key: string]: any },
|
||||
data: { [key: string]: unknown },
|
||||
templateString: string
|
||||
): Promise<string> {
|
||||
try {
|
||||
@ -26,9 +26,9 @@ export function generateMd(data: string): Promise<string> {
|
||||
if (error) {
|
||||
core.error('#generateMd');
|
||||
core.error(error);
|
||||
return resolve('');
|
||||
resolve('');
|
||||
}
|
||||
return resolve(String(file));
|
||||
resolve(String(file));
|
||||
});
|
||||
});
|
||||
}
|
||||
|
@ -87,7 +87,7 @@ export async function run(): Promise<void> {
|
||||
}
|
||||
}
|
||||
|
||||
const catchAll = (info: any) => {
|
||||
const catchAll = (info: string) => {
|
||||
core.setFailed(`#catchAll: ${info}`);
|
||||
core.error(info);
|
||||
};
|
||||
|
Loading…
x
Reference in New Issue
Block a user