Skip to content

Commit

Permalink
feat: test (3.0.0)
Browse files Browse the repository at this point in the history
  • Loading branch information
iseizuu committed Jun 3, 2024
1 parent 827daa8 commit aa7848b
Show file tree
Hide file tree
Showing 15 changed files with 113 additions and 23 deletions.
5 changes: 3 additions & 2 deletions .eslintrc.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@

{
"env": {
"browser": true,
Expand All @@ -25,10 +24,12 @@
"warn", { "before": false, "after": true }
],
"@typescript-eslint/no-empty-function": "off",
"@typescript-eslint/indent": ["warn", 4],
"@typescript-eslint/indent": "warn",
"@typescript-eslint/no-unsafe-assignment": "off",
"@typescript-eslint/restrict-template-expressions": "off",
"@typescript-eslint/no-unused-vars": "error",
"@typescript-eslint/unbound-method": "off",
"@typescript-eslint/semi": "error",
"no-empty-function": "off",
"comma-style": "error",
"quotes": ["warn", "double"]
Expand Down
1 change: 1 addition & 0 deletions dist/config.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ export declare const free4kWallpaper = "https://free4kwallpapers.com";
export declare const wallHaven = "https://wallhaven.cc";
export declare const zerochan = "https://www.zerochan.net";
export declare const wallpapers = "https://wallpapers.com";
export declare const pinterest = "https://id.pinterest.com/search/pins/";
export declare const type: {
sfw: string;
sketchy: string;
Expand Down
5 changes: 3 additions & 2 deletions dist/config.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/hoyo.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 6 additions & 2 deletions dist/utils/request.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 8 additions & 0 deletions dist/wallpaper.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,14 @@ export declare class AnimeWallpaper {
* @returns {Promise<hoyoResult>} - A promise that resolves to the result of the request.
*/
Hoyolab(params: hoyolab): Promise<hoyoResult>;
/**
* Retrieves anime wallpapers from Pinterest based on a search query.
*
* @param {string} query - The search query for the wallpapers.
* @returns {Promise<dataImageFormat[]>} - A promise that resolves to an array of dataImageFormat objects.
* @throws {WallError} - If the search query is not provided.
*/
pinterest(query: string): Promise<dataImageFormat[]>;
/**
* Scrapes a random anime wallpaper from free4kWallpaper.
*
Expand Down
Loading

0 comments on commit aa7848b

Please sign in to comment.