mirror of
https://github.com/gristlabs/grist-core.git
synced 2026-03-02 04:09:24 +00:00
(core) Use GristObjCode in CellValue
Summary: Makes type checking a bit stronger Test Plan: it just has to compile Reviewers: jarek Reviewed By: jarek Differential Revision: https://phab.getgrist.com/D3065
This commit is contained in:
@@ -12,8 +12,8 @@ _ts_types = {
|
||||
"Int": "number",
|
||||
"PositionNumber": "number",
|
||||
"Ref": "number",
|
||||
"RefList": "['L', ...number[]]|null", # Non-primitive values are encoded
|
||||
"ChoiceList": "['L', ...string[]]|null",
|
||||
"RefList": "[GristObjCode.List, ...number[]]|null", # Non-primitive values are encoded
|
||||
"ChoiceList": "[GristObjCode.List, ...string[]]|null",
|
||||
"Text": "string",
|
||||
}
|
||||
|
||||
@@ -24,6 +24,9 @@ def get_ts_type(col_type):
|
||||
def main():
|
||||
print("""\
|
||||
/*** THIS FILE IS AUTO-GENERATED BY %s ***/
|
||||
|
||||
import { GristObjCode } from "app/plugin/GristData";
|
||||
|
||||
// tslint:disable:object-literal-key-quotes
|
||||
|
||||
export const SCHEMA_VERSION = %d;
|
||||
|
||||
Reference in New Issue
Block a user