Add a proposed API check option

Part of #2826
This commit is contained in:
Daniel Imms
2020-05-08 12:41:10 -07:00
parent 64328ee39c
commit aa59f34aab
5 changed files with 43 additions and 2 deletions
+7
View File
@@ -29,6 +29,13 @@ declare module 'xterm' {
* An object containing start up options for the terminal.
*/
export interface ITerminalOptions {
/**
* Whether to allow the use of proposed API. When false, any usage of APIs
* marked as experimental/proposed will throw an error. This defaults to
* true currently, but will change to false in v5.0.
*/
allowProposedApi?: boolean;
/**
* Whether background should support non-opaque color. It must be set before
* executing the `Terminal.open()` method and can't be changed later without