More Debugging
All checks were successful
Publish to Private NPM Registry / publish (push) Successful in 33s
All checks were successful
Publish to Private NPM Registry / publish (push) Successful in 33s
This commit is contained in:
parent
85f56e4287
commit
eb7dcaf556
1 changed files with 4 additions and 0 deletions
|
|
@ -65,6 +65,10 @@ export function Page(title: string, page: string, extraScripts: (string | { scri
|
||||||
|
|
||||||
console.log('[Page Decorator] Original:', original);
|
console.log('[Page Decorator] Original:', original);
|
||||||
|
|
||||||
|
if(original.length === 1 && typeof original[0] === 'function') {
|
||||||
|
console.log('[Page Decorator] Original First Parameter:', original[0]);
|
||||||
|
}
|
||||||
|
|
||||||
// If the original function has more than 3 parameters, we can assume it is an error handler
|
// If the original function has more than 3 parameters, we can assume it is an error handler
|
||||||
// An error handler starts with the error object, then the request, response and next functions.
|
// An error handler starts with the error object, then the request, response and next functions.
|
||||||
if(original.length > 3) {
|
if(original.length > 3) {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue