Skip to content

Commit

Permalink
compatible with tea core
Browse files Browse the repository at this point in the history
  • Loading branch information
peze committed Dec 31, 2024
1 parent c84c1b6 commit 042410c
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@
"lodash": "^4.17.21",
"moment": "^2.30.1",
"moment-timezone": "^0.5.45",
"@alicloud/tea-typescript": "^1.5.1",
"xml2js": "^0.6.2"
},
"files": [
Expand Down
8 changes: 5 additions & 3 deletions src/core.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ import * as httpx from 'httpx';
import { parse } from 'url';
import { RetryOptions } from './retry';
import { BaseError } from './error';
import * as $tea from '@alicloud/tea-typescript';

type TeaDict = { [key: string]: string };
type TeaObject = { [key: string]: any };
Expand Down Expand Up @@ -212,10 +213,11 @@ export function toMap(value: any = undefined, withoutStream: boolean = false): a
return value;
}

export class Model {
export class Model extends $tea.Model {
[key: string]: any

constructor(map?: TeaObject) {
super();
if (map == null) {
return;
}
Expand Down Expand Up @@ -390,7 +392,7 @@ export class FileField extends Model {
}
}

export class ExtendsParameters extends Model {
export class ExtendsParameters extends $tea.Model {
headers?: { [key: string]: string };
queries?: { [key: string]: string };
static names(): { [key: string]: string } {
Expand All @@ -412,7 +414,7 @@ export class ExtendsParameters extends Model {
}
}

export class RuntimeOptions extends Model {
export class RuntimeOptions extends $tea.Model {
retryOptions?: RetryOptions;
autoretry?: boolean;
ignoreSSL?: boolean;
Expand Down

0 comments on commit 042410c

Please sign in to comment.