Skip to content

Commit 185c848

Browse files
committed
fix: type doc
1 parent 6367af3 commit 185c848

2 files changed

Lines changed: 2 additions & 7 deletions

File tree

packages/dbml-core/src/export/ModelExporter.js

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,6 @@ import SqlServerExporter from './SqlServerExporter';
66
import OracleExporter from './OracleExporter';
77

88
class ModelExporter {
9-
/**
10-
* @param {object} model
11-
* @param {string} format
12-
* @param {object|boolean} flags
13-
* @deprecated Passing a boolean as the third argument is deprecated. Use `{ isNormalized: boolean }` instead.
14-
*/
159
static export (model = {}, format = '', flags = {}) {
1610
let res = '';
1711
// Backwards compatibility: if a boolean is passed, treat it as the isNormalized flag

packages/dbml-core/types/export/ModelExporter.d.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ declare class ModelExporter {
99
/**
1010
* @deprecated Passing a boolean as the third argument is deprecated. Use `{ isNormalized: boolean }` instead.
1111
*/
12-
static export(model: Database | NormalizedModel, format: ExportFormatOption, flags?: ExportFlags | boolean): string;
12+
static export(model: Database | NormalizedModel, format: ExportFormatOption, isNormalized: boolean): string;
13+
static export(model: Database | NormalizedModel, format: ExportFormatOption, flags?: ExportFlags): string;
1314
}
1415
export default ModelExporter;

0 commit comments

Comments
 (0)