fix: Fetcher.client as readonly

This commit is contained in:
Starcea 2024-06-28 16:52:14 +09:00
commit 548871dc29
No known key found for this signature in database
GPG key ID: B7A77E32374911E1

View file

@ -1,7 +1,7 @@
import type Comcigan from '../client' import type Comcigan from '../client'
export default class Fetcher { export default class Fetcher {
protected client!: Comcigan protected readonly client!: Comcigan
constructor(client: Comcigan) { constructor(client: Comcigan) {
Object.defineProperty(this, 'client', { value: client, enumerable: false }) Object.defineProperty(this, 'client', { value: client, enumerable: false })