✨ feat: refine type definitions and improve request handling in API layer
This commit is contained in:
@@ -50,11 +50,7 @@ const publishLocation = (_p?: string) => {
|
||||
}
|
||||
|
||||
if (typeof history !== "undefined") {
|
||||
const historyApply = (
|
||||
target: (this: any, ...args: readonly any[]) => unknown,
|
||||
thisArg: any,
|
||||
argumentsList: string | readonly any[]
|
||||
) => {
|
||||
const historyApply: ProxyHandler<typeof history.pushState>["apply"] = (target, thisArg, argumentsList) => {
|
||||
publishLocation(argumentsList && argumentsList.length >= 2 && argumentsList[2])
|
||||
Reflect.apply(target, thisArg, argumentsList)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user