switch to official cloudflare api client while keeping class based approach

This commit is contained in:
2024-06-15 19:47:09 +02:00
parent 1d2e0974b2
commit f39f8cd33c
9 changed files with 160 additions and 264 deletions

View File

@@ -6,3 +6,15 @@ import * as smartstring from '@push.rocks/smartstring';
import * as tsclass from '@tsclass/tsclass';
export { smartlog, smartpromise, smartdelay, smartrequest, smartstring, tsclass };
// third party
import * as cloudflare from 'cloudflare';
import type { Zone } from 'cloudflare/resources/zones/zones.js';
import type { Record } from 'cloudflare/resources/dns/records.js';
export interface ICloudflareTypes {
Zone: Zone;
Record: Record;
}
export { cloudflare };