Fix util export types

This commit is contained in:
Kenny Daniel 2024-09-26 10:34:26 -07:00
parent c8033621f9
commit bb202dfdeb
No known key found for this signature in database
GPG Key ID: 90AB653A8CAD7E45
4 changed files with 17 additions and 17 deletions

File diff suppressed because one or more lines are too long

@ -32,20 +32,20 @@
"@rollup/plugin-replace": "6.0.1",
"@rollup/plugin-terser": "0.4.4",
"@rollup/plugin-typescript": "12.1.0",
"@types/node": "22.7.0",
"@types/react": "18.3.9",
"@types/node": "22.7.4",
"@types/react": "18.3.11",
"@types/react-dom": "18.3.0",
"@vitest/coverage-v8": "2.1.1",
"eslint": "9.11.1",
"eslint-plugin-jsdoc": "50.2.4",
"@vitest/coverage-v8": "2.1.2",
"eslint": "9.12.0",
"eslint-plugin-jsdoc": "50.3.1",
"hightable": "0.4.4",
"http-server": "14.1.1",
"hyparquet-compressors": "0.1.4",
"react": "18.3.1",
"react-dom": "18.3.1",
"rollup": "4.22.4",
"rollup": "4.24.0",
"typescript": "5.6.2",
"typescript-eslint": "8.7.0",
"vitest": "2.1.1"
"typescript-eslint": "8.8.0",
"vitest": "2.1.2"
}
}

14
src/hyparquet.d.ts vendored

@ -116,20 +116,20 @@ export function toJson(obj: any): any
/**
* Construct an AsyncBuffer for a URL.
*
* @param {string} url
* @returns {Promise<AsyncBuffer>}
* If byteLength is not provided, will make a HEAD request to get the file size.
*/
export function asyncBufferFromUrl(url: string): Promise<AsyncBuffer>
export function asyncBufferFromUrl(url: string, byteLength?: number): Promise<AsyncBuffer>
/**
* Construct an AsyncBuffer for a local file using node fs package.
*
* @param {string} filename
* @returns {Promise<AsyncBuffer>}
*/
export function asyncBufferFromFile(filename: string): Promise<AsyncBuffer>
/**
* Get the byte length of a URL using a HEAD request.
*/
export function byteLengthFromUrl(url: string): Promise<number>
/**
* Parquet query options for reading data
*/

@ -7,7 +7,7 @@ export { parquetQuery } from './query.js'
export { snappyUncompress } from './snappy.js'
export { asyncBufferFromFile, asyncBufferFromUrl, toJson } from './utils.js'
export { asyncBufferFromFile, asyncBufferFromUrl, byteLengthFromUrl, toJson } from './utils.js'
/**
* @param {import('./hyparquet.js').ParquetReadOptions} options