@skypilot/steampress
Advanced tools
Comparing version 1.3.14-next.0 to 1.3.14-next.1
@@ -0,1 +1,2 @@ | ||
import { JsonMap } from '@skypilot/common-types'; | ||
import { TypeScriptFormatterOptions } from '../exporters/formatAsTypeScript'; | ||
@@ -11,5 +12,5 @@ import { ParseSheetOptions } from './types'; | ||
outFormat?: 'json' | 'typescript'; | ||
formatterOptions?: TypeScriptFormatterOptions | {}; | ||
formatterOptions?: TypeScriptFormatterOptions; | ||
parserOptions: ParseSheetOptions; | ||
} | ||
export declare function convertExcelSheetToJson(options: ConvertExcelSheetToJsonOptions): object[]; | ||
export declare function convertExcelSheetToJson(options: ConvertExcelSheetToJsonOptions): JsonMap[]; |
@@ -1,3 +0,3 @@ | ||
import { JsonObject } from '@skypilot/common-types'; | ||
import { JsonMap } from '@skypilot/common-types'; | ||
import { ExcelRow, ParseRowOptions } from './types'; | ||
export declare function parseExcelRow(row: ExcelRow, rowOptions: ParseRowOptions): JsonObject | null; | ||
export declare function parseExcelRow(row: ExcelRow, rowOptions: ParseRowOptions): JsonMap | null; |
@@ -0,3 +1,4 @@ | ||
import { JsonMap } from '@skypilot/common-types'; | ||
import { ExcelRow, ExcelSheet, ParseSheetOptions } from './types'; | ||
export declare function confirmHeaders(row: ExcelRow, sheetOptions: ParseSheetOptions): boolean; | ||
export declare function parseExcelSheet(rows: ExcelSheet, sheetStructure: ParseSheetOptions): object[]; | ||
export declare function parseExcelSheet(rows: ExcelSheet, sheetStructure: ParseSheetOptions): JsonMap[]; |
@@ -1,2 +0,2 @@ | ||
import { Integer, JsonObject } from '@skypilot/common-types'; | ||
import { Integer, JsonMap } from '@skypilot/common-types'; | ||
export declare type CellDataType = LiteralCellDataType | 'date' | 'integer'; | ||
@@ -6,3 +6,3 @@ export declare type ExcelSheet = ExcelRow[]; | ||
export declare type LiteralCellDataType = 'boolean' | 'number' | 'string'; | ||
declare type ObjectArrayTransformer = (value: JsonObject[]) => JsonObject[]; | ||
declare type ObjectArrayTransformer = (value: JsonMap[]) => JsonMap[]; | ||
export declare type Transformer = (value: any) => any; | ||
@@ -9,0 +9,0 @@ export declare type Validator = (value: any) => boolean; |
@@ -5,3 +5,3 @@ export declare type Json = string; | ||
} | ||
export declare function formatAsJson(data: object, formatOptions?: FormatterOptions): Json; | ||
export declare function formatAsJson(data: Record<string, any>, formatOptions?: FormatterOptions): Json; | ||
export {}; |
@@ -6,2 +6,2 @@ export interface TypeScriptFormatterOptions { | ||
} | ||
export declare function formatAsTypeScript(data: object, options?: TypeScriptFormatterOptions): string; | ||
export declare function formatAsTypeScript(data: Record<string, any>, options?: TypeScriptFormatterOptions): string; |
@@ -6,2 +6,2 @@ export interface WriteToFileOptions { | ||
} | ||
export declare function writeToFile(obj: object, { baseName, outDir, }: WriteToFileOptions): void; | ||
export declare function writeToFile(obj: Record<string, any>, { baseName, outDir, }: WriteToFileOptions): void; |
{ | ||
"name": "@skypilot/steampress", | ||
"version": "1.3.14-next.0", | ||
"version": "1.3.14-next.1", | ||
"private": false, | ||
@@ -55,3 +55,3 @@ "description": "Parse, filter, and transform messy spreadsheets into clean object data", | ||
"devDependencies": { | ||
"@skypilot/common-types": "^1.7.3", | ||
"@skypilot/common-types": "^2.1.3", | ||
"@skypilot/toolchain": "^5.1.0" | ||
@@ -58,0 +58,0 @@ }, |
31482
742