spunite17 typescript for sharepoint developers
TRANSCRIPT
BenefitsofusingTypeScript
• Allowsforlarge-scaleJavaScriptapplications
• FollowsECMAScriptfutureproposal
• Supportsplain-oldJavaScript• NotexcludinganyJavaScriptfeature
• Improvedconsistency
• IDEsupport(e.g.Intellisense)
• Compile-timetypechecking
Wheretouseit?
• SharePointFramework
• JSLink
• Displaytemplates• CEWP/SEWP
• Customactions
• SinglePageApplication
• Add-ins
Prerequisites
VSCode• Node.js• npm• TypeScriptcompiler
VisualStudio• TypeScriptadd-inforVS• NuGet• MSBuild targetsconfiguration
Whentousewhat?
VSCode• SharePointFramework• JSLink• Displaytemplates• CEWP/SEWP• Customactions• SinglePageApplication
VisualStudio• SharePointFramework• Add-ins
- Install:npm install-gtypescript- CreateaTSfile- Run:tsc index.ts --targetES5- UsetheJSfile
Stepstostartwriting