Skip to content

Commit

Permalink
squash!
Browse files Browse the repository at this point in the history
  • Loading branch information
NikolaRHristov committed Aug 9, 2023
1 parent 824a31c commit 6c53465
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion Source/Library/Apply.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// rome-ignore lint/suspicious/noExplicitAny:
export default async (Fn: any, Test: any) => {
export default async <T = string>(Fn: (args: any) => T, Test: any) => {
switch (true) {
case Test instanceof Map: {
const Tests = new Map();
Expand Down
2 changes: 1 addition & 1 deletion Source/Library/Files/In.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ export default async (Path: Path, Paths: Plan["Paths"]) => {
const _Path = await Apply(
(Path: string) => (Path.endsWith("/") ? Path : `${Path}/`),
await Apply(
(url: URL | string) => (url instanceof URL ? __Path(url) : url),
(_URL: URL | string) => (_URL instanceof URL ? __Path(_URL) : _URL),
Path
)
);
Expand Down
2 changes: 1 addition & 1 deletion Target/Library/Apply.d.ts
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
declare const _default: (Fn: any, Test: any) => Promise<any>;
declare const _default: <T = string>(Fn: (args: any) => T, Test: any) => Promise<any[] | T | Map<any, any> | Set<unknown>>;
export default _default;
2 changes: 1 addition & 1 deletion Target/Library/Apply.js

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

2 changes: 1 addition & 1 deletion Target/Library/Files/In.js

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

0 comments on commit 6c53465

Please sign in to comment.