typelite


IMemberIdentifier missing from TypeLite.TsModels namespace


So I've been using TypeLite 1.0.1 with good results until I upgraded to the latest version (1.1.0). It seems the IMemberIdentifier interface is gone, which broke this part of my T4 script:
ts.WithFormatter((TypeLite.TsModels.IMemberIdentifier identifier) =>
Char.ToLower(identifier.Name[0]) + identifier.Name.Substring(1));
I was using this to camel case all my properties in the TypeScript interfaces I'm generating. I can't seem to find a workaround for it and the TypeLite site documentation still uses the above code in their example. I had the same problem with version 1.0.2.
Any comments or ideas much appreciated. Thanks.
It seems that method of formatting members has changed.
To camel case all properties use:
ts.WithMemberFormatter((TypeLite.TsModels.TsProperty identifier) => Char.ToLower(identifier.Name[0]) + identifier.Name.Substring(1));

Related Links

Typelite “Cannot load file or assembly” Autofac
TypeLite fresh install doesn't work
How to change TypeLite Output Directory
How to setup TypeLite to build types in other projects
Variant type and non, with same name
Ignoring types with fluent configuration in Typelite
IMemberIdentifier missing from TypeLite.TsModels namespace
Typelite Converts All Classes
Fluent module name change
TypeLite generate external modules?
Typelite: Why is Dictionary<string, object> mapped to KeyValuePair and not to any or [index:string]:any

Categories

HOME
amazon-web-services
visual-studio
apache-nifi
gaming
enums
operating-system
braintree
out-of-memory
semantic-web
elisp
vue-resource
impala
javafx-8
graphql-js
tweepy
azure-logic-apps
roku
driver
yeoman-generator-angular
xamarin-zebble
match
alljoyn
responsivevoice
mpu6050
ex
stimulsoft
pywinauto
tomcat8
exec-maven-plugin
checkout
opam
kamailio
amazon-sns
pdf.js
data-collection
points
tf-idf
basex
social-networking
amazon-iam
dotcms
commonsware-cwac
osx-lion
serversocket
custom-keyboard
restful-architecture
char-pointer
orchardcms-1.8
landscape
identify
android-alarms
tidal-scheduler
type-inference
dredd
autorelease
return-type
renderman
aurelia-fetch-client
pen
glimpse
alertify
maatwebsite-excel
e
p6spy
node.js-connect
static-methods
yii2-model
jeasyui
jemdoc
vaadin4spring
json-spirit
phpquery
place
dsa
srv-record
compositetype
componentart
flow-js
quercus
prism-4
python-curses
camus
incron
nhibernate-criteria
flurry-analytics
rpg
oxygene
strcmp
xsd2code
libxml-js
indesign-server
pacman
django-filebrowser
monocross
qtextbrowser
sql-parametrized-query
canonicalization
eventaggregator
rawcontacts
eai
database-cloning
error-detection
account-management

Resources

Mobile Apps Dev
Database Users
javascript
java
csharp
php
android
MS Developer
developer works
python
ios
c
html
jquery
RDBMS discuss
Cloud Virtualization
Database Dev&Adm
javascript
java
csharp
php
python
android
jquery
ruby
ios
html
Mobile App
Mobile App
Mobile App