Skip to content

Commit

Permalink
feat: 增加 fetch接口
Browse files Browse the repository at this point in the history
  • Loading branch information
rowthan committed Nov 1, 2022
1 parent 9f65e0c commit b887b62
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion shared/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@pagenote/shared",
"version": "1.7.4",
"version": "1.7.6",
"description": "",
"main": "lib/",
"dependencies": {
Expand Down
4 changes: 2 additions & 2 deletions shared/src/@types/data.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import {LightStatus} from "../pagenote-brush";
import {LightStatus, LightType} from "../pagenote-brush";
import {boxroom} from "../extApi";
import BoxItem = boxroom.BoxItem;

Expand Down Expand Up @@ -43,7 +43,7 @@ type Step = {
lightStatus: LightStatus // 高亮状态
annotationStatus: AnnotationStatus,
annotationShowType: AnnotationShowType,
lightType?: LinkStyle, // 画笔类型,删除线、高亮
lightType?: LightType, // 画笔类型,删除线、高亮
level?: number, // 高亮层级
text?: string, // 标记的文本内容
pre? : string, // 标记的文本内容 上文信息
Expand Down
4 changes: 2 additions & 2 deletions shared/src/extApi.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import {BackupData, BackupDataType, FileData, ResourceInfo, Step, WebPage} from "./@types/data";
import {BackupData, BackupDataType, ResourceInfo, Step, WebPage} from "./@types/data";
import {Find, FindResponse, Pagination, Query} from "./@types/database";
import {
BaseMessageHeader,
Expand Down Expand Up @@ -451,7 +451,7 @@ export namespace network {
export interface response {
pagenote: IExtenstionMessageListener<AxiosRequestConfig, AxiosResponse>
axios: IExtenstionMessageListener<AxiosRequestConfig, AxiosResponse>
fetch: IExtenstionMessageListener<{input: ResourceInfo | URL, init?: RequestInit}, Response & {json?: any, text?: string}>
fetch: IExtenstionMessageListener<{input: string, init?: RequestInit}, Response & {jsonData?: any}>
[key: string]: IExtenstionMessageListener<any, any>
}

Expand Down

0 comments on commit b887b62

Please sign in to comment.