Skip to content

Commit

Permalink
Merge pull request #206 from transifex/update-api-ts-declaration
Browse files Browse the repository at this point in the history
Update @transifex/api TS declaration file
  • Loading branch information
Nikos Vasileiou authored Jan 9, 2024
2 parents a2e9051 + cf6fbbd commit 3790a75
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions packages/api/src/transifexApi.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ interface StringDict {
}

declare class JsonApiResource {
constructor({
constructor(params: {
id: string,
attributes: AnyDict,
relationships: AnyDict,
Expand All @@ -19,7 +19,7 @@ declare class JsonApiResource {
static get(arg:string | AnyDict): Promise<JsonApiResource>;
fetch(relationshipName: string, force: boolean): Promise<JsonApiResource | Collection>;
save(arg: AnyDict | string[]): Promise<void>;
static create({
static create(params: {
id: string,
attributes: AnyDict,
relationships: AnyDict,
Expand Down Expand Up @@ -59,8 +59,8 @@ type AuthFunction = () => string;
type AuthArgument = string | AuthFunction;

export declare class TransifexApi {
constructor({ host: string, auth: AuthArgument });
setup({ host: string, auth: AuthArgument }): void;
constructor(params: { host?: string, auth: AuthArgument });
setup(params: { host?: string, auth: AuthArgument }): void;

Organization: typeof JsonApiResource;
User: typeof JsonApiResource;
Expand Down

0 comments on commit 3790a75

Please sign in to comment.