@@ -38,7 +38,7 @@ const generateTypeMapping = (properties: Resource<Core.Property>[]) => {
3838 const lines = properties . map ( prop => {
3939 const type = DatatypeToTSTypeMap [ prop . props . datatype as Datatype ] ;
4040
41- return `["${ prop . getSubject ( ) } "]: ${ type } ;` ;
41+ return `["${ prop . subject } "]: ${ type } ;` ;
4242 } ) ;
4343
4444 return lines . join ( '\n' ) ;
@@ -48,7 +48,7 @@ const generateNameMapping = (properties: Resource<Core.Property>[]) => {
4848 const lines = properties . map ( prop => {
4949 const name = camelCaseify ( prop . props . shortname ) ;
5050
51- return `["${ prop . getSubject ( ) } "]: "${ name } ";` ;
51+ return `["${ prop . subject } "]: "${ name } ";` ;
5252 } ) ;
5353
5454 return lines . join ( '\n' ) ;
@@ -58,15 +58,15 @@ const generateBaseObjectProperties = (
5858 properties : Resource < Core . Property > [ ] ,
5959) => {
6060 const lines = properties . map (
61- p => `${ p . props . shortname } : '${ p . getSubject ( ) } ',` ,
61+ p => `${ camelCaseify ( p . props . shortname ) } : '${ p . subject } ',` ,
6262 ) ;
6363
6464 return lines . join ( '\n' ) ;
6565} ;
6666
6767export const generateExternals = async ( props : string [ ] ) => {
6868 const properties : Resource < Core . Property > [ ] = await Promise . all (
69- props . map ( p => store . getResourceAsync < Core . Property > ( p ) ) ,
69+ props . map ( p => store . getResource < Core . Property > ( p ) ) ,
7070 ) ;
7171
7272 const baseOjbectProperties = generateBaseObjectProperties ( properties ) ;
0 commit comments