feat(build): 👷 Don't minify/bundle/compile packages in release

This commit is contained in:
Jesse Wierzbinski 2024-06-07 15:01:47 -10:00
parent c54558abdf
commit 4542750159
No known key found for this signature in database
4 changed files with 18 additions and 5 deletions

View file

@ -13,6 +13,10 @@ type ConvertibleObject = {
| ConvertibleObject;
};
/**
* Output of a request. Contains the data and headers.
* @template ReturnType The type of the data returned by the request.
*/
export interface Output<ReturnType> {
data: ReturnType;
headers: Headers;
@ -50,6 +54,12 @@ const objectToFormData = (obj: ConvertibleObject): FormData => {
}, new FormData());
};
/**
* Wrapper around Error, useful for detecting if an error
* is due to a failed request.
*
* Throws if the request returns invalid or unexpected data.
*/
export class ResponseError extends Error {}
export class BaseClient {

View file

@ -1,3 +1,6 @@
/**
* Mastodon API Access Token
*/
export type Token = {
access_token: string;
token_type: string;