-
-
Notifications
You must be signed in to change notification settings - Fork 623
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(types): expose TypeCast types (#2425)
* fix(types): expose TypeCast types * chore(refactor): resolve conflict for types with ambiguous name s * chore: lint fix * chore: refactor `TypeCastField` import for `Field` and deprecated description
- Loading branch information
1 parent
5b44bf9
commit 336a7f1
Showing
3 changed files
with
28 additions
and
18 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,18 @@ | ||
import { setMaxParserCache, clearParserCache } from './ParserCache.js'; | ||
import { | ||
TypeCast, | ||
Field as TypeCastField, | ||
Geometry as TypeCastGeometry, | ||
Next as TypeCastNext, | ||
Type as TypeCastType, | ||
} from './typeCast.js'; | ||
|
||
export { setMaxParserCache, clearParserCache }; | ||
export { | ||
setMaxParserCache, | ||
clearParserCache, | ||
TypeCast, | ||
TypeCastField, | ||
TypeCastGeometry, | ||
TypeCastNext, | ||
TypeCastType, | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,10 @@ | ||
declare interface Field { | ||
constructor: { | ||
name: 'Field'; | ||
}; | ||
db: string; | ||
table: string; | ||
name: string; | ||
type: string; | ||
length: number; | ||
string: () => any; | ||
buffer: () => any; | ||
geometry: () => any; | ||
} | ||
// TODO (major version): remove workaround for `Field` compatibility. | ||
import { TypeCastField } from '../../../lib/parsers/index.js'; | ||
|
||
/** | ||
* @deprecated | ||
* `Field` is deprecated and might be removed in the future major release. Please use `TypeCastField` type instead. | ||
*/ | ||
declare interface Field extends TypeCastField {} | ||
|
||
export { Field }; |