TypeScript

TypeScript is an open source programming language developed by Microsoft and first released in 2012. It is designed to add type safety to JavaScript while conforming as closely as possible to the syntax and semantics of the ECMAScript standard.
It is a syntactical superset of the JavaScript programming language; all valid JavaScript source code is also valid TypeScript source code, but not vice-versa. TypeScript compiles (or transpiles) to JavaScript, meaning that it can be utilized to target any JavaScript environment. It can be used to develop JavaScript for both client-side and server-side applications.
Here are 56,060 public repositories matching this topic...
Screenshot:
To use the dark mode, select it in your appearance settings: https://github.com/settings/appearance
TypeScript Version: 4.1.0-beta
Search Terms: string.replace
Code
const str ='apple apple';
console.log(str.replace('apple','oranges'));
Expected behavior: It should replace all occurrences of 'apple'
Actual behavior: It is replacing only the first occurrence of 'apple'.
Either correct the IntelliSense doc or fix the replace function. Please find t
- I have searched the issues of this repository and believe that this is not a duplicate.
Reproduction link
Steps to reproduce
- Open demo at https://ant.desig
Demo palette code preview doesn't follow the interface
interface PaletteColor {
light?: string;
main: string;
dark?: string;
contrastText?: string;
}
Describe the bug
Storybook --host attribute it changes localhost where it should change network host.
start-storybook -h 192.168.89.89 -p 9009
Local: http://192.168.89.89:9009
On your network: http://10.0.2.15:9009
The expected result should be like the one bellow
Local: http://localhost::9009/
On your network: http://192.168.89.89:9009
-
Updated
Dec 12, 2020 - TypeScript
-
Updated
Dec 12, 2020 - TypeScript
-
Updated
Dec 12, 2020 - TypeScript
Environment
Vuetify Version: 2.3.19
Vue Version: 2.6.12
Browsers: Chrome 86.0.4240.198
OS: Linux x86_64
Steps to reproduce
Enable dense mode in v-text-field and add prefix
Expected Behavior
Prefix and the text field content should vertically align even in dense mode
Actual Behavior
Prefix is slightly above the text field content
Reproduction L
相关平台
微信小程序
复现仓库
https://github.com/li-z/taro-bug
小程序基础库: 2.12.0
使用框架: React
复现步骤
运行项目后点击跳转到详情页,然后返回首页。然后触发子组件的 onClick 事件时,回调函数却还是详情页的函数。去掉id属性后正常。
期望结果
有无id属性都应正常
实际结果
有id属性异常
环境信息
Taro CLI 3.0.7 environment info:
System:
OS: macOS
Taro能使用wxs吗?
ng update on windows fails when cli version wants to preinstall | loader.js | Cannot find module
-
Updated
Dec 11, 2020 - TypeScript
-
Updated
Dec 10, 2020 - JavaScript
-
Updated
Dec 11, 2020 - TypeScript
-
Updated
Dec 11, 2020 - TypeScript
What cheatsheet is this about? (if applicable)
Basic cheatsheet
What's your issue or idea?
content duplication
There are two identical subheading, Types or Interfaces?.
And following contents are almost the same.
I think It is better to be deduplicated.
I'd appreciate it if you could consider it for the next reader. :)
**(If applicable) Reproduction of issue
-
Updated
May 20, 2019 - TypeScript
Environment
Provide version numbers for the following components (information can be retrieved by running tns info
in your project folder or by inspecting the package.json
of the project):
- CLI: 6.2.2
- Cross-platform modules: 6.0.1
- Android Runtime: 6.2.0
- iOS Runtime: 6.2.0
- Plugin(s): unrelated
Describe the bug
openFile method of utils module does not preview the
Environment
- Package version(s): @blueprintjs/core@3.17.2 @blueprintjs/select@3.11.2
- Browser and OS versions: MacOS Catalina (10.15.1) / Chrome 78.0.3904.108
Question
Is there any solid documentation for the renderFilteredItems()
utility function exported from the select
package? It is briefly mentioned under the itemListRenderer
props section of the select
c
-
Updated
Dec 12, 2020 - TypeScript
-
Updated
Dec 12, 2020 - Go
-
Updated
Dec 10, 2020 - TypeScript
-
Updated
Dec 11, 2020 - TypeScript
-
Updated
Dec 12, 2020 - C++
-
Updated
Dec 12, 2020 - TypeScript
-
Updated
Nov 14, 2020 - Go
Created by Microsoft
Released October 1, 2012
Latest release 24 days ago
- Repository
- Microsoft/TypeScript
- Website
- www.typescriptlang.org
- Wikipedia
- Wikipedia
Version: 1.50.1 (system setup)
Commit: d2e414d9e4239a252d1ab117bd7067f125afd80a
Date: 2020-10-13T15:06:15.712Z
Electron: 9.2.1
Chrome: 83.0.4103.122
Node.js: 12.14.1
V8: 8.3.110.13-electron.0
OS: Windows_NT x64 10.0.18363
Steps to Reproduce:
Create a sample Electron project.
In the