9
0
mirror of https://github.com/donlon/cloudflare-error-page.git synced 2025-12-25 09:49:23 +00:00

js: support error code with string type

This commit is contained in:
Anthony Donlon
2025-12-23 20:52:59 +08:00
parent ae8849f39f
commit 48169fd3fa
2 changed files with 2 additions and 2 deletions

View File

@@ -49,7 +49,7 @@ Generates an HTML error page based on the provided parameters.
```typescript
interface ErrorPageParams {
// Basic information
error_code?: number; // Default: 500
error_code?: string | number; // Default: 500
title?: string; // Default: 'Internal server error'
html_title?: string; // Default: '{error_code}: {title}'
time?: string; // Auto-generated if not provided

View File

@@ -30,7 +30,7 @@ export interface CreatorInfo {
}
export interface ErrorPageParams {
error_code?: number;
error_code?: string | number;
title?: string;
html_title?: string;
time?: string;