diff --git a/src/base/base.ts b/src/base/base.ts index 36ebaa1..08be753 100644 --- a/src/base/base.ts +++ b/src/base/base.ts @@ -22,8 +22,8 @@ export abstract class DigestBase { } public abstract get(url: string, config?: unknown): Promise; - public abstract post(url: string, config?: unknown, data?: D): Promise; - public abstract put(url: string, config?: unknown, data?: D): Promise; + public abstract post(url: string, data?: D, config?: unknown ): Promise; + public abstract put(url: string, data?: D, config?: unknown): Promise; public abstract delete(url: string, config?: unknown): Promise; public abstract head(url: string, config?: unknown): Promise; public abstract request(url: string, config: Record, data?: D): Promise;