Skip to content

Commit

Permalink
fix: made included in best ts type nullable (#118)
Browse files Browse the repository at this point in the history
  • Loading branch information
cl-shaharshavit-rnd authored Jan 9, 2022
1 parent c3b4bd4 commit 168aaec
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,10 @@ export const TsTypes: Record<string, IDescribeTsType> = {
value: 'string',
type: PropertiesTypes.ARRAY,
},
NULLABLE_STRING: {
value: 'string | null',
type: PropertiesTypes.PRIMITIVE,
},
BOOLEAN: {
value: 'boolean',
type: PropertiesTypes.PRIMITIVE,
Expand Down
2 changes: 1 addition & 1 deletion src/models/layerMetadata/pycswLayerCatalogRecord.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ export class PycswLayerCatalogRecord extends LayerMetadata implements IPycswCore
},
})
@tsTypes({
mappingType: TsTypes.STRING,
mappingType: TsTypes.NULLABLE_STRING,
})
@graphql()
@fieldConfig({
Expand Down

0 comments on commit 168aaec

Please sign in to comment.