Effective TypeScript: 62 specific ways to improve your TypeScript
"TypeScript is a typed superset of JavaScript with the potential to solve many of the headaches for which JavaScript is famous. But TypeScript has a learning curve of its own, and understanding how to use it effectively can take time. This book guides you through 62 specific ways to improve you...
Gespeichert in:
1. Verfasser: | |
---|---|
Format: | Buch |
Sprache: | English |
Veröffentlicht: |
Beijing ; Boston ; Farnham ; Sebastopol ; Tokyo
O'Reilly
2019
|
Ausgabe: | First edition |
Schlagworte: | |
Online-Zugang: | Inhaltsverzeichnis |
Zusammenfassung: | "TypeScript is a typed superset of JavaScript with the potential to solve many of the headaches for which JavaScript is famous. But TypeScript has a learning curve of its own, and understanding how to use it effectively can take time. This book guides you through 62 specific ways to improve your use of TypeScript."-- Provided by publisher |
Beschreibung: | Hier auch später erschienene, unveränderte Nachdrucke |
Beschreibung: | xviii, 241 Seiten Illustrationen, Diagramme |
ISBN: | 9781492053743 |
Internformat
MARC
LEADER | 00000nam a2200000 c 4500 | ||
---|---|---|---|
001 | BV046304623 | ||
003 | DE-604 | ||
005 | 20210913 | ||
007 | t | ||
008 | 191216s2019 a||| |||| 00||| eng d | ||
020 | |a 9781492053743 |9 978-1-492-05374-3 | ||
035 | |a (OCoLC)1136279441 | ||
035 | |a (DE-599)BVBBV046304623 | ||
040 | |a DE-604 |b ger |e rda | ||
041 | 0 | |a eng | |
049 | |a DE-29T |a DE-739 |a DE-M347 | ||
084 | |a ST 250 |0 (DE-625)143626: |2 rvk | ||
100 | 1 | |a Vanderkam, Dan |e Verfasser |0 (DE-588)1241065977 |4 aut | |
245 | 1 | 0 | |a Effective TypeScript |b 62 specific ways to improve your TypeScript |c Dan Vanderkam |
250 | |a First edition | ||
264 | 1 | |a Beijing ; Boston ; Farnham ; Sebastopol ; Tokyo |b O'Reilly |c 2019 | |
300 | |a xviii, 241 Seiten |b Illustrationen, Diagramme | ||
336 | |b txt |2 rdacontent | ||
337 | |b n |2 rdamedia | ||
338 | |b nc |2 rdacarrier | ||
500 | |a Hier auch später erschienene, unveränderte Nachdrucke | ||
505 | 8 | |a Getting to know TypeScript -- TypeScript's type system -- Type inference -- Type design -- Working with any -- Types declarations and @types -- Writing and running your code -- Migrating to TypeScript | |
520 | 3 | |a "TypeScript is a typed superset of JavaScript with the potential to solve many of the headaches for which JavaScript is famous. But TypeScript has a learning curve of its own, and understanding how to use it effectively can take time. This book guides you through 62 specific ways to improve your use of TypeScript."-- Provided by publisher | |
653 | 0 | |a TypeScript (Computer program language) | |
653 | 0 | |a Application software / Development | |
653 | 0 | |a Web applications | |
653 | 0 | |a Application software / Development | |
653 | 0 | |a TypeScript (Computer program language) | |
653 | 0 | |a Web applications | |
856 | 4 | 2 | |m Digitalisierung UB Passau - ADAM Catalogue Enrichment |q application/pdf |u http://bvbr.bib-bvb.de:8991/F?func=service&doc_library=BVB01&local_base=BVB01&doc_number=031681867&sequence=000001&line_number=0001&func_code=DB_RECORDS&service_type=MEDIA |3 Inhaltsverzeichnis |
999 | |a oai:aleph.bib-bvb.de:BVB01-031681867 |
Datensatz im Suchindex
_version_ | 1804180776855535616 |
---|---|
adam_text | Table of Contents Preface....................................................................................................... xi 1. Getting to Know TypeScript.......................................................................... 1 Item 1: Item 2: Item 3: Item 4: Item 5: Understand the Relationship Between TypeScript and JavaScript Know Which TypeScript Options You’re Using Understand That Code Generation Is Independent of Types Get Comfortable with Structural Typing Limit Use of the any Type 1 7 10 16 20 2. TypeScripťs Type System............................................................................ 25 Item 6: Use Your Editor to Interrogate and Explore the Type System Item 7: Think of Types as Sets of Values Item 8: Know How to Tell Whether a Symbol Is in the Type Space or Value Space Item 9: Prefer Type Declarations to Type Assertions Item 10: Avoid Object Wrapper Types (String, Number, Boolean, Symbol, Biglnt) Item 11 : Recognize the Limits of Excess Property Checking Item 12: Apply Types to Entire Function Expressions When Possible Item 13: Know the Differences Between type and interface Item 14: Use Type Operations and Generics to Avoid Repeating Yourself Item 15: Use Index Signatures for Dynamic Data Item 16: Prefer Arrays, Tuples, and ArrayLike to number Index Signatures Item 17: Use readonly to Avoid Errors Associated with Mutation Item 18: Use Mapped Types to Keep Values in Sync 25 29 35 40 43 46 49 52 56 64 68 71 77 3. Type Inference......................................................................................... 81 Item 19: Avoid Cluttering
Your Code with Inferable Types 81 vii
Item 20: Use Different Variables for Different Types Item 21 : Understand Type Widening Item 22: Understand Type Narrowing Item 23: Create Objects All at Once Item 24: Be Consistent in Your Use of Aliases Item 25: Use async Functions Instead of Callbacks for Asynchronous Code Item 26: Understand How Context Is Used in Type Inference Item 27: Use Functional Constructs and Libraries to Help Types Flow 87 90 93 96 99 102 107 111 4. Type Design.......................................................................................... 117 Item 28: Prefer Types That Always Represent Valid States Item 29: Be Liberal in What You Accept and Strict in What You Produce Item 30: Don’t Repeat Type Information in Documentation Item 31 : Push Null Values to the Perimeter of Your Types Item 32: Prefer Unions of Interfaces to Interfaces of Unions Item 33: Prefer More Precise Alternatives to String Types Item 34: Prefer Incomplete Types to Inaccurate Types Item 35: Generate Types from APIs and Specs, Not Data Item 36: Name Types Using the Language of Your Problem Domain Item 37: Consider “Brands” for Nominal Typing 5. Working with any 4331349571 Item 38: Use the Narrowest Possible Scope for any Types Item 39: Prefer More Precise Variants of any to Plain any Item 40: Hide Unsafe Type Assertions in Well-Typed Functions Item 41: Understand Evolving any Item 42: Use unknown Instead of any for Values with an Unknown Type Item 43: Prefer Type-Safe Approaches to Monkey Patching Item 44: Track Your Type Coverage to Prevent Regressions in Type Safety 117 122 125 127 131 134 138 142 147 149 Item 54:
Item 55: Item 56: Item 57: Know How to Iterate Over Objects Understand the DOM hierarchy Don’t Rely on Private to Hide Information Use Source Maps to Debug TypeScript 198 201 205 208 8. Migrating to TypeScript........................................................................... 213 Item 58: Write Modern JavaScript 214 Item 59: Use @ts-check and JSDoc to Experiment with TypeScript 222 Item 60: Use allowjs to Mix TypeScript and JavaScript 226 Item 61 : Convert Module by Module Up Your Dependency Graph 228 Item 62: Don’t Consider Migration Complete Until You Enable noImplicitAny 233 Index....................................................................................................... 235 153 153 155 157 159 162 166 168 6. Types Declarations and @types.................................................................. 171 Item 45: Put TypeScript and @types in devDependencies Item 46: Understand the Three Versions Involved in Type Declarations Item 47: Export All Types That Appear in Public APIs Item 48: Use TSDoc for API Comments Item 49: Provide a Type for this in Callbacks Item 50: Prefer Conditional Types to Overloaded Declarations Item 51: Mirror Types to Sever Dependencies Item 52: Be Aware of the Pitfalls of Testing Types 171 173 177 178 181 185 187 188 7. Writing and Running Your Code................................................................. 193 Item 53: Prefer ECMAScript Features to TypeScript Features viii I Table of Contents 193 Table of Contents I ix
|
any_adam_object | 1 |
author | Vanderkam, Dan |
author_GND | (DE-588)1241065977 |
author_facet | Vanderkam, Dan |
author_role | aut |
author_sort | Vanderkam, Dan |
author_variant | d v dv |
building | Verbundindex |
bvnumber | BV046304623 |
classification_rvk | ST 250 |
contents | Getting to know TypeScript -- TypeScript's type system -- Type inference -- Type design -- Working with any -- Types declarations and @types -- Writing and running your code -- Migrating to TypeScript |
ctrlnum | (OCoLC)1136279441 (DE-599)BVBBV046304623 |
discipline | Informatik |
edition | First edition |
format | Book |
fullrecord | <?xml version="1.0" encoding="UTF-8"?><collection xmlns="http://www.loc.gov/MARC21/slim"><record><leader>02108nam a2200397 c 4500</leader><controlfield tag="001">BV046304623</controlfield><controlfield tag="003">DE-604</controlfield><controlfield tag="005">20210913 </controlfield><controlfield tag="007">t</controlfield><controlfield tag="008">191216s2019 a||| |||| 00||| eng d</controlfield><datafield tag="020" ind1=" " ind2=" "><subfield code="a">9781492053743</subfield><subfield code="9">978-1-492-05374-3</subfield></datafield><datafield tag="035" ind1=" " ind2=" "><subfield code="a">(OCoLC)1136279441</subfield></datafield><datafield tag="035" ind1=" " ind2=" "><subfield code="a">(DE-599)BVBBV046304623</subfield></datafield><datafield tag="040" ind1=" " ind2=" "><subfield code="a">DE-604</subfield><subfield code="b">ger</subfield><subfield code="e">rda</subfield></datafield><datafield tag="041" ind1="0" ind2=" "><subfield code="a">eng</subfield></datafield><datafield tag="049" ind1=" " ind2=" "><subfield code="a">DE-29T</subfield><subfield code="a">DE-739</subfield><subfield code="a">DE-M347</subfield></datafield><datafield tag="084" ind1=" " ind2=" "><subfield code="a">ST 250</subfield><subfield code="0">(DE-625)143626:</subfield><subfield code="2">rvk</subfield></datafield><datafield tag="100" ind1="1" ind2=" "><subfield code="a">Vanderkam, Dan</subfield><subfield code="e">Verfasser</subfield><subfield code="0">(DE-588)1241065977</subfield><subfield code="4">aut</subfield></datafield><datafield tag="245" ind1="1" ind2="0"><subfield code="a">Effective TypeScript</subfield><subfield code="b">62 specific ways to improve your TypeScript</subfield><subfield code="c">Dan Vanderkam</subfield></datafield><datafield tag="250" ind1=" " ind2=" "><subfield code="a">First edition</subfield></datafield><datafield tag="264" ind1=" " ind2="1"><subfield code="a">Beijing ; Boston ; Farnham ; Sebastopol ; Tokyo</subfield><subfield code="b">O'Reilly</subfield><subfield code="c">2019</subfield></datafield><datafield tag="300" ind1=" " ind2=" "><subfield code="a">xviii, 241 Seiten</subfield><subfield code="b">Illustrationen, Diagramme</subfield></datafield><datafield tag="336" ind1=" " ind2=" "><subfield code="b">txt</subfield><subfield code="2">rdacontent</subfield></datafield><datafield tag="337" ind1=" " ind2=" "><subfield code="b">n</subfield><subfield code="2">rdamedia</subfield></datafield><datafield tag="338" ind1=" " ind2=" "><subfield code="b">nc</subfield><subfield code="2">rdacarrier</subfield></datafield><datafield tag="500" ind1=" " ind2=" "><subfield code="a">Hier auch später erschienene, unveränderte Nachdrucke</subfield></datafield><datafield tag="505" ind1="8" ind2=" "><subfield code="a">Getting to know TypeScript -- TypeScript's type system -- Type inference -- Type design -- Working with any -- Types declarations and @types -- Writing and running your code -- Migrating to TypeScript</subfield></datafield><datafield tag="520" ind1="3" ind2=" "><subfield code="a">"TypeScript is a typed superset of JavaScript with the potential to solve many of the headaches for which JavaScript is famous. But TypeScript has a learning curve of its own, and understanding how to use it effectively can take time. This book guides you through 62 specific ways to improve your use of TypeScript."-- Provided by publisher</subfield></datafield><datafield tag="653" ind1=" " ind2="0"><subfield code="a">TypeScript (Computer program language)</subfield></datafield><datafield tag="653" ind1=" " ind2="0"><subfield code="a">Application software / Development</subfield></datafield><datafield tag="653" ind1=" " ind2="0"><subfield code="a">Web applications</subfield></datafield><datafield tag="653" ind1=" " ind2="0"><subfield code="a">Application software / Development</subfield></datafield><datafield tag="653" ind1=" " ind2="0"><subfield code="a">TypeScript (Computer program language)</subfield></datafield><datafield tag="653" ind1=" " ind2="0"><subfield code="a">Web applications</subfield></datafield><datafield tag="856" ind1="4" ind2="2"><subfield code="m">Digitalisierung UB Passau - ADAM Catalogue Enrichment</subfield><subfield code="q">application/pdf</subfield><subfield code="u">http://bvbr.bib-bvb.de:8991/F?func=service&doc_library=BVB01&local_base=BVB01&doc_number=031681867&sequence=000001&line_number=0001&func_code=DB_RECORDS&service_type=MEDIA</subfield><subfield code="3">Inhaltsverzeichnis</subfield></datafield><datafield tag="999" ind1=" " ind2=" "><subfield code="a">oai:aleph.bib-bvb.de:BVB01-031681867</subfield></datafield></record></collection> |
id | DE-604.BV046304623 |
illustrated | Illustrated |
indexdate | 2024-07-10T08:41:09Z |
institution | BVB |
isbn | 9781492053743 |
language | English |
oai_aleph_id | oai:aleph.bib-bvb.de:BVB01-031681867 |
oclc_num | 1136279441 |
open_access_boolean | |
owner | DE-29T DE-739 DE-M347 |
owner_facet | DE-29T DE-739 DE-M347 |
physical | xviii, 241 Seiten Illustrationen, Diagramme |
publishDate | 2019 |
publishDateSearch | 2019 |
publishDateSort | 2019 |
publisher | O'Reilly |
record_format | marc |
spelling | Vanderkam, Dan Verfasser (DE-588)1241065977 aut Effective TypeScript 62 specific ways to improve your TypeScript Dan Vanderkam First edition Beijing ; Boston ; Farnham ; Sebastopol ; Tokyo O'Reilly 2019 xviii, 241 Seiten Illustrationen, Diagramme txt rdacontent n rdamedia nc rdacarrier Hier auch später erschienene, unveränderte Nachdrucke Getting to know TypeScript -- TypeScript's type system -- Type inference -- Type design -- Working with any -- Types declarations and @types -- Writing and running your code -- Migrating to TypeScript "TypeScript is a typed superset of JavaScript with the potential to solve many of the headaches for which JavaScript is famous. But TypeScript has a learning curve of its own, and understanding how to use it effectively can take time. This book guides you through 62 specific ways to improve your use of TypeScript."-- Provided by publisher TypeScript (Computer program language) Application software / Development Web applications Digitalisierung UB Passau - ADAM Catalogue Enrichment application/pdf http://bvbr.bib-bvb.de:8991/F?func=service&doc_library=BVB01&local_base=BVB01&doc_number=031681867&sequence=000001&line_number=0001&func_code=DB_RECORDS&service_type=MEDIA Inhaltsverzeichnis |
spellingShingle | Vanderkam, Dan Effective TypeScript 62 specific ways to improve your TypeScript Getting to know TypeScript -- TypeScript's type system -- Type inference -- Type design -- Working with any -- Types declarations and @types -- Writing and running your code -- Migrating to TypeScript |
title | Effective TypeScript 62 specific ways to improve your TypeScript |
title_auth | Effective TypeScript 62 specific ways to improve your TypeScript |
title_exact_search | Effective TypeScript 62 specific ways to improve your TypeScript |
title_full | Effective TypeScript 62 specific ways to improve your TypeScript Dan Vanderkam |
title_fullStr | Effective TypeScript 62 specific ways to improve your TypeScript Dan Vanderkam |
title_full_unstemmed | Effective TypeScript 62 specific ways to improve your TypeScript Dan Vanderkam |
title_short | Effective TypeScript |
title_sort | effective typescript 62 specific ways to improve your typescript |
title_sub | 62 specific ways to improve your TypeScript |
url | http://bvbr.bib-bvb.de:8991/F?func=service&doc_library=BVB01&local_base=BVB01&doc_number=031681867&sequence=000001&line_number=0001&func_code=DB_RECORDS&service_type=MEDIA |
work_keys_str_mv | AT vanderkamdan effectivetypescript62specificwaystoimproveyourtypescript |