trashposs/packages/iceshrimp-js/markdown/iceshrimp-js.api.apiclient._constructor_.md
2023-07-21 19:33:01 +02:00

924 B

Home > iceshrimp-js > api > APIClient > (constructor)

api.APIClient.(constructor)

Constructs a new instance of the APIClient class

Signature:

constructor(opts: {
		origin: APIClient["origin"];
		credential?: APIClient["credential"];
		fetch?: APIClient["fetch"] | null | undefined;
	});

Parameters

Parameter Type Description
opts { origin: APIClient["origin"]; credential?: APIClient["credential"]; fetch?: APIClient["fetch"] | null | undefined; }