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:
@@ -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
|
||||
|
||||
@@ -30,7 +30,7 @@ export interface CreatorInfo {
|
||||
}
|
||||
|
||||
export interface ErrorPageParams {
|
||||
error_code?: number;
|
||||
error_code?: string | number;
|
||||
title?: string;
|
||||
html_title?: string;
|
||||
time?: string;
|
||||
|
||||
Reference in New Issue
Block a user