@toreda/strong-types
Version:
Better TypeScript code in fewer lines.
1 lines • 2.83 kB
Source Map (JSON)
{"version":3,"sources":["../src/os.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;GAuBG;AAEH;;;;;GAKG;AACH,oBAAY,EAAE;AACb,qCAAqC;AACnC,SAAS;AACX;;;;;;;;;;;;;;GAcG;GACD,QAAQ;AACV,kCAAkC;GAChC,OAAO;AACT,mDAAmD;GACjD,SAAS;AACX,wDAAwD;GACtD,QAAQ;AACV,OAAO;GACL,KAAK,GACL,MAAM,CAAC","file":"os.d.ts","sourcesContent":["/**\n *\tMIT License\n *\n *\tCopyright (c) 2019 - 2021 Toreda, Inc.\n *\n *\tPermission is hereby granted, free of charge, to any person obtaining a copy\n *\tof this software and associated documentation files (the \"Software\"), to deal\n *\tin the Software without restriction, including without limitation the rights\n *\tto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\n *\tcopies of the Software, and to permit persons to whom the Software is\n *\tfurnished to do so, subject to the following conditions:\n\n * \tThe above copyright notice and this permission notice shall be included in all\n * \tcopies or substantial portions of the Software.\n *\n * \tTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n *\tIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n *\tFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n * \tAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n *\tLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n *\tOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\n * \tSOFTWARE.\n *\n */\n\n/**\n * OS Identifiers typically as returned by 'uname' on POSIX compatible\n * systems. Windows continues to be do its own things and be windows.\n *\n * @category System Info\n */\nexport type OS =\n\t/** All windows desktop family OS. */\n\t| 'windows'\n\t/** MacOS family based on darwin.\n\t * Includes\n\t *\t\tMac OS X Panther 10.3, PowerBook G4 (2004)\n\t *\t\tMac OS X Snow Leopard 10.6, MacBook3,1 (Late 2007)\n\t *\t\tMac OS X Lion 10.7.3 build 11D50, MacbookPro7,1 (Late 2010)\n\t *\t\tOS X Mountain Lion 10.8.3 build 12D78, MacbookPro10,1 (Mid 2012)\n\t *\t\tOS X Mavericks 10.9 build 13A598, MacbookPro5,1 (Mid 2009)\n\t *\t\tOS X Yosemite 10.10 build 14A298i, MacbookPro6,2 (Mid 2010)\n\t *\t\tOS X El Capitan 10.11 build 15A284, MacBookPro10,1 (Mid 2012)\n\t *\t\tmacOS Sierra 10.12 build 16E195, MacBookPro12,1 (Early 2015)\n\t *\t\tmacOS High Sierra 10.13.3 build 17D47, MacBookPro12,1 (Early 2015)\n\t *\t\tmacOS Mojave 10.14.3 build 18D109\n\t *\t\tmacOS Catalina 10.15.5 build 19F101\n\t *\t\tmacOS Big Sur 11.0.1 build 20B29 on Apple M1\n\t */\n\t| 'darwin'\n\t/** All distributions of Linux. */\n\t| 'linux'\n\t/** Android (DROID) family of operating systems. */\n\t| 'android'\n\t/** Amazon's FireOS - their Android fork for kindles. */\n\t| 'fireos'\n\t/** */\n\t| 'all'\n\t| 'none';\n"]}