2017
DOI: 10.1145/3133914
|View full text |Cite
|
Sign up to set email alerts
|

Type test scripts for TypeScript testing

Abstract: TypeScript applications often use untyped JavaScript libraries. To support static type checking of such applications, the typed APIs of the libraries are expressed as separate declaration files. This raises the challenge of checking that the declaration files are correct with respect to the library implementations. Previous work has shown that mismatches are frequent and cause TypeScript's type checker to misguide the programmers by rejecting correct applications and accepting incorrect ones. This paper shows … Show more

Help me understand this report

Search citation statements

Order By: Relevance

Paper Sections

Select...
1
1
1
1

Citation Types

0
11
0

Year Published

2018
2018
2024
2024

Publication Types

Select...
4
2
1

Relationship

1
6

Authors

Journals

citations
Cited by 14 publications
(11 citation statements)
references
References 22 publications
(36 reference statements)
0
11
0
Order By: Relevance
“…The TypeScript project provides a guide on how to write high-quality declaration files 9 . The guide explains the main var greet = require ( " ./ greet -settings -module " ) ; greet ({ greeting : " hello world " , duration : 4000 }) ; greet ({ greeting : " hello world " , color : " #00 ff00 " }) ; The Typescript project provides a package dts-gen, which generates a template for a declaration file by analyzing the structure of the module.…”
Section: Typescript Declaration Filesmentioning
confidence: 99%
See 1 more Smart Citation
“…The TypeScript project provides a guide on how to write high-quality declaration files 9 . The guide explains the main var greet = require ( " ./ greet -settings -module " ) ; greet ({ greeting : " hello world " , duration : 4000 }) ; greet ({ greeting : " hello world " , color : " #00 ff00 " }) ; The Typescript project provides a package dts-gen, which generates a template for a declaration file by analyzing the structure of the module.…”
Section: Typescript Declaration Filesmentioning
confidence: 99%
“…TSTest. TSTest is a tool that checks for mismatches between a declaration file and the JavaScript implementation of the module [9]. It applies feedback-directed random testing for generating type test scripts.…”
Section: Related Workmentioning
confidence: 99%
“…A well-known problem with semantic versioning is that it requires a specification of the library's API, 12 typically in the form of documentation, such that a client knows exactly what the library expects and what it produces, and this is often an unrealistic requirement [1]. Without such a specification, any change to the library that breaks a client might as well be classified as the client not using the library as the library developer intended.…”
Section: Examplementioning
confidence: 99%
“…JavaScript library developers can choose to write TypeScript declarations that define the public APIs of their libraries. However, declaration files are often full of errors and rarely kept up-to-date making them unsuitable for breaking change detection [12].…”
Section: Studies Of Breaking Changes In Library Updatesmentioning
confidence: 99%
“…Developing large Single-Page Applications (SPA) based on pure JavaScript on the client side is a difficult and inefficient process, so it is needed to use frameworks that define the application structure and have a basic set of components [23][24][25].…”
Section: The Choice Of Technological Solutions For the Developmenmentioning
confidence: 99%