Skip to content

Commit

Permalink
perf(core): type update
Browse files Browse the repository at this point in the history
  • Loading branch information
enncy committed Dec 19, 2023
1 parent a1b9237 commit 3fd3864
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
"eslint.validate": ["javascript", "javascriptreact", "vue"],
"editor.formatOnSave": true,
"editor.codeActionsOnSave": {
"source.fixAll.eslint": true
"source.fixAll.eslint": "explicit"
},
"editor.defaultFormatter": "esbenp.prettier-vscode",
/** 样式自动生成 */
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,12 @@ import { $ } from '../../utils';
export async function defaultAnswerWrapperHandler(
answererWrappers: AnswererWrapper[],
// 上下文解析环境
env: any
env: {
title?: string;
options?: string;
type?: string;
[x: string]: any;
}
): Promise<SearchInformation[]> {
const searchInfos: SearchInformation[] = [];
const temp: AnswererWrapper[] = JSON.parse(JSON.stringify(answererWrappers));
Expand Down
2 changes: 1 addition & 1 deletion packages/scripts/src/projects/icourse.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ export const ICourseProject = Project.create({
dispatcher: new Script({
name: '调度器',
hideInPanel: true,
url: [['所有页面', 'icourse163.org']],
url: [['所有页面', 'icourse163.org']],
oncomplete() {
setInterval(() => {
const hash = new URL(window.location.href).hash;
Expand Down

0 comments on commit 3fd3864

Please sign in to comment.